Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

expand window

Status
Not open for further replies.

JeroenB

Programmer
Apr 8, 2001
93
BE
Hi;
I want to do this; when opening my first page, there should open a second page (mainpage) which fills the whole screen.
The problem is now that in the code I've used, you still have to click the button on the mainbar to maximize the screen. How can I solve this problem. (The main bar above in my screen still has to be visible...)
This is the code I've used

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>

netscape = &quot;main.htm&quot;; // set your browser pages
explorer = &quot;main.htm&quot;;
unknown = &quot;main.htm&quot;;

// Determine the popup window properties
// options include: top, left, toolbars, scrollbars,
// menubar, location, statusbar, and resizable

windowprops = &quot;top=0,left=0,resizable=yes&quot;
+ &quot;,width=&quot; + screen.width + &quot;,height=&quot; + screen.height;

ns = (navigator.appName == 'Netscape');
ie = (navigator.appName == 'Microsoft Internet Explorer');
url = (!ns & !ie) ? unknown : ( ns ? netscape : explorer);
window.open(url, &quot;popupPage&quot;, windowprops);
// End -->
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top