-2

我正在使用下面的代码打开一个没有导航工具栏的新弹出窗口。但它是用导航工具栏打开的。请帮我解决我的问题。

<script type="text/javascript">
function loadUrl1(newLocation)
{
myRef = window.open('newLocation','mywin',
'left=20,top=20,width=500,height=500,toolbar=0,resizable=0,status=0,location=0,address=0');
}
</script>
4

1 回答 1

0

弹出脚本:

<script language="javascript" type="text/javascript">
   function popitup(url) {
        newwindow=window.open(url,'name','height=200,width=150');
        if (window.focus) {newwindow.focus()}
        return false;
    }       
</script>

然后,您通过以下方式链接到它:

<a href="popupex.html" onclick="return popitup('popupex.html')">Open popup</a>

这是另一个参考:

http://www.gtalbot.org/BugzillaSection/Bug195867GDR_WindowOpen.html

于 2013-02-22T04:34:19.283 回答