5

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

Muhammad Akhtar
  • 51,913
  • 37
  • 138
  • 191

3 Answers3

8

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

Community
  • 1
  • 1
Kobi
  • 135,331
  • 41
  • 252
  • 292
  • For me if i run the code on my local environment it shides the location bar.. but when i run it on my TEST server or Prod it shows up, but is readonly. The Strange part is that how is is hidden in my Local Environment where as its visible in the other environment. – nipiv Apr 22 '13 at 12:01
0

Use PopupControl instead of pupup window.

Wael Dalloul
  • 22,172
  • 11
  • 48
  • 57
0

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

Himadri
  • 8,600
  • 15
  • 47
  • 70