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?
开发者_如何学CThanks.
No. You can't destroy a window that you didn't create with a script in the first place.
精彩评论