问题
when I open popup window and set location=0 or location=no, url bar is still shown in IE8 and readonly.
How can hide it?
Thanks
回答1:
It cannot be done, modern browser don't allow it at that would be a major security flaw.
See also this answer, shamelessly copied from David Dorward:
In Internet Explorer 7 and later, you cannot remove the address bar in Internet Zone windows, for security (anti-spoofing) reasons.
http://msdn.microsoft.com/en-us/library/ms536651%28VS.85%29.aspx
回答2:
Use PopupControl instead of pupup window.
回答3:
You cannot hide address bar. Check the article.
Also check the link below.
http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/402ecb05-9833-4ca1-83f1-f486056a1c04
来源:https://stackoverflow.com/questions/1673003/popup-window-how-to-hide-url-bar-in-ie8