Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Hide address bar in IE window using javascript

Posted on 2011-09-19
17
442 Views
Last Modified: 2012-05-12
Hi,
  How can I hide address bar when opening a window using window.open(..). Please  let me know.

Thank you
0
Comment
Question by:Sthokala
  • 8
  • 4
  • 3
  • +1
17 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 167 total points
ID: 36563299
0
 
LVL 10

Expert Comment

by:acbxyz
ID: 36563323
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
 

Author Comment

by:Sthokala
ID: 36563341
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 10

Expert Comment

by:acbxyz
ID: 36563439
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
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36564753
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
 

Author Comment

by:Sthokala
ID: 36567024
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
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36567057
Checking it now...
0
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36567083
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
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36567102
Check this screenshot

screenshot.png
0
 

Author Comment

by:Sthokala
ID: 36567116
Thank you for your reply. Please find the attached image. I still see the popup.


Thank you
popup.PNG
0
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36567121
Show your code
0
 
LVL 82

Expert Comment

by:leakim971
ID: 36567136
guys, you're not using the same browser...
0
 

Author Comment

by:Sthokala
ID: 36567159
I just copied the same code that you posted. I am using IE8.

Thank you
0
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36567163
Ohh You are using IE

window.open("404.html", "myPopup", 'toolbars=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=yes');
 
0
 
LVL 17

Assisted Solution

by:sonawanekiran
sonawanekiran earned 333 total points
ID: 36567179
I don't have IE browser installed on my machine. @leakim971 may help you.
0
 
LVL 17

Assisted Solution

by:sonawanekiran
sonawanekiran earned 333 total points
ID: 36567186
0
 
LVL 10

Expert Comment

by:acbxyz
ID: 36567835
Guys, look up at my posting #36563323, and the link of leakim971 before, and my posting in the link in the link...
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
chrome and edge version of getElementById("p").attributes("title").value 2 36
Else condition 9 23
Hide cell in a table 2 27
Possible propagation problem 1 22
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question