不用window.open()设置
window.open ('http://www.baidu.com', 'newwindow', 'height=50, width=400, top=250, left=250, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
先用<a href="http://www.baidu.com" target=_brank>baidu.com</a>弹出一个窗口;然后用JS设置这个页面跟:
window.open ('http://www.baidu.com', 'newwindow', 'height=50, width=400, top=250, left=250, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
弹出的页面一模一样的效果.有没有方法做到.谢谢.
window.open ('http://www.baidu.com', 'newwindow', 'height=50, width=400, top=250, left=250, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
先用<a href="http://www.baidu.com" target=_brank>baidu.com</a>弹出一个窗口;然后用JS设置这个页面跟:
window.open ('http://www.baidu.com', 'newwindow', 'height=50, width=400, top=250, left=250, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
弹出的页面一模一样的效果.有没有方法做到.谢谢.
<script language="javascript">
function opendialog(){
var someValue= window.showModalDialog ("Default2.aspx","",dialogWidth=300px;dialogHeight=250px;status=no;scrollbars=no")
document.form1.TextBox1.value=someValue;
}
</script>
弹出全屏网页:
<script>
function winopen(){
newwin = window.open("","scrollbars");
if(document.all){
newwin.moveTo(0,0)
newwin.resizeTo(screen.width,srceen.height)
}
newwin.location = "default1.aspx";
}
}
</script>