Popup window, how to Hide URL bar in IE8

旧城冷巷雨未停 提交于 2019-12-07 05:39:23

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!