Home > DeveloperSection > Forums > How can we remove address bar of browser
Rajesh Goswami

Total Post:29

Points:203
Posted on    October-29-2010 7:05 AM

 JavaScript JavaScript 
Ratings:


 1 Reply(s)
 2014  View(s)
Rate this:
I am trying to remove address bar of browser from javascript. I am writing the following code

window.open('newWindow.aspx', 'new', 'width=' + width + ', height=' + height + ', toolbar=no,location=0, left=' + left + ',top=' + top + 'screenX=' + left + ',screenY=' + top + ', directories=no, menubar=no,scrollbars=no,resizable=no, status=no');
please help,

Thanks in advance


Awadhendra Tiwari

Total Post:126

Points:882
Posted on    May-20-2011 9:49 AM

Hi...

Try following code to hide address bar from browser

function openWindow(){
var browser=navigator.appName;
if (browser==”Microsoft Internet Explorer”)
{
window.opener=self;

}
window.open(‘filename.htm’,'null’,'width=900,height=750,
toolbar=no,scrollbars=no,location=no,resizable =yes’);
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height-100);
self.close();
}

May be this solve your problem.


Don't want to miss updates? Please click the below button!

Follow MindStick