• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 750
  • Last Modified:

Hide address bar in IE window using javascript

Hi,
  How can I hide address bar when opening a window using window.open(..). Please  let me know.

Thank you
0
Sthokala
Asked:
Sthokala
  • 8
  • 4
  • 3
  • +1
3 Solutions
 
acbxyzCommented:
There is a security option in Internet Explorer zone security settings, the 10th from bottom.
Something like "Allow websites to open windows without address or statusbar", which is disabled by default on internet zone. This is done as phishing preventsion.
0
 
SthokalaAuthor Commented:
Hi,
  thank you for your responses. I wan to do it programmatically. Please let me know how can I hide address bar using javascript.

Thank you

0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
acbxyzCommented:
As I said, there is no way javascript can hide the bars if the ie default settings are not changed before.
If you need this for an intranet site, you can add your url to trusted sites or local intranet, both zones allow hiding these bars.
0
 
Kiran SonawaneProject LeadCommented:
I don't think you can hide the address bar on a user's current window but you can create a pop up that has the address bar hidden:
var popup = window.open("http://someurl", "myPopup", 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=120,height=120');

Open in new window

0
 
SthokalaAuthor Commented:
Hi sonawanekiran,
  I wan to hide address bar in the pop up window only. I am opening window with window.open. I copied ur code..but still I see address bar on the window. Please let me know how can I do it.

Thank you
0
 
Kiran SonawaneProject LeadCommented:
Checking it now...
0
 
Kiran SonawaneProject LeadCommented:
I can not see address bar
check this



<html>
<head>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
  
  $('#btn').click(function(){
    var popup = window.open("404.html", "myPopup", 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=520,height=200');
  });
  
});
</script>
<title>Untitled Document</title>
</head>
<body>
 <input type="button" id="btn" value="Open PopUp">
</body>
</html>

Open in new window

0
 
Kiran SonawaneProject LeadCommented:
Check this screenshot

screenshot.png
0
 
SthokalaAuthor Commented:
Thank you for your reply. Please find the attached image. I still see the popup.


Thank you
popup.PNG
0
 
Kiran SonawaneProject LeadCommented:
Show your code
0
 
leakim971PluritechnicianCommented:
guys, you're not using the same browser...
0
 
SthokalaAuthor Commented:
I just copied the same code that you posted. I am using IE8.

Thank you
0
 
Kiran SonawaneProject LeadCommented:
Ohh You are using IE

window.open("404.html", "myPopup", 'toolbars=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=yes');
 
0
 
Kiran SonawaneProject LeadCommented:
I don't have IE browser installed on my machine. @leakim971 may help you.
0
 
acbxyzCommented:
Guys, look up at my posting #36563323, and the link of leakim971 before, and my posting in the link in the link...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 8
  • 4
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now