This topic is locked

Javascript to control Browser toolbar

8/17/2011 7:42:32 PM
PHPRunner General questions
I
ikisoul author

I am trying to use this Javascript to control the toolbar of the browser on the onload javascript event and getting error Please can someone help me on this. The script is listed below
var browser=navigator.appName;

if (browser=="Microsoft Internet Explorer")

{

window.opener=self;
}

window.open('filename.php','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();

}