簡體   English   中英

Firefox Safari chrome等中的window.createPopup()相當於什么

[英]What is the equivalent of window.createPopup() in Firefox Safari chrome etc

似乎我不能在其他瀏覽器上使用window.createpopup,因為它不受支持。 我使用window.createpopup的原因是因為它可以從一個框架彈出並顯示在同一頁面上的另一個框架的頂部。 我正在使用框架集,所以這不可能與其他類型的下拉菜單。 還有什么我可以使用它可以實現相同的目標(從一幀和另一幀的ppup或下拉)?

編輯:

我沒有使用iframe作為框架集

這是我的框架集的樣子

</head>
    <frameset id="frameMain" rows="84,*" framespacing="0">
       <frame src="pageHeader.html" id="mail" name="mail" frameborder="0" border="0" marginwidth="0" marginheight="0" noresize="noresize" scrolling="no"/>
       <frameset id="frameSet" cols="126,*" framespacing="0">
           <frame src="page2.html" id="leftnav" name="leftnav" frameborder="0" border="0" marginwidth="0" marginheight="0" noresize="noresize" scrolling="no"/>
           <frame src="empty.htm" id="main" name="main" frameborder="0" border="0" noresize="noresize" scrolling="yes"/>
       </frameset>
    </frameset>
</html>

我希望我的下拉菜單在'frameMain'中並顯示在其他幀上,而不是在它們后面

我不確定這對你的情況是否有幫助 - 我沒有嘗試過,但是我已經實現了一個跨瀏覽器window.createPopup(),它可以在所有主流瀏覽器上運行:Firefox,IE,Chrome,Safari。

這是我的文章,包含所有細節和所需的代碼: http//extremedev.blogspot.com/2011/01/ie-windowcreatepopup-cross-browser.html

在那里發表評論,以便我知道它是否有幫助,否則,告訴我是什么問題,我們將嘗試找到解決方案。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM