HOW CAN WE REMOVE ADDRESS BAR OF BROWSER

Rajesh Goswami

Total Post:29

Points:203
Posted by  Rajesh Goswami
 2372  View(s)
Ratings:
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
  1. Awadhendra Tiwari

    Post:126

    Points:882
    Re: How can we remove address bar of browser

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!