简体   繁体   中英

How to open current page in new window

What i want to do is when the user opens their browser and types http://xyz.com/index.html , then it should pop up a new full screen window and then display index page in that new window.

I tried with using window.open('login.html', 'new_windwo', '_self'); and it opens a new window, but then there are 2 windows — one where user typed the URL, and the 2nd that we have open in the onLoad of the first page.

I am not able to close the first window — self.close() and window.close aren't working. I am using Firefox 3.6.

Is there is any way that I can open current page in new window, without creating duplicate?

Thanks.

不可以。你不能破坏一个你没有用脚本创建的窗口。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM