javascript onload question


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: javascript onload question

  1. #1
    Join Date
    May 2005
    Posts
    1

    Unhappy javascript onload question

    hi can anybody provide me with a javascript to:

    reload a page in fullscreen with only a menubar to minimise and close the page.

    e.g. When someone opens my home page i want it to open in fullscreen with a menu and scroll bars but not to reopen another page fullscreen.

    I have something close below but it opens a new window with no menubar:

    <SCRIPT LANGUAGE="JavaScript">
    if (this.name!='fullscreen'){
    window.open(location. href,'fullscreen','fullscreen,scrollbars,toolbars'
    )
    }
    </script>
    <body onload="Window">

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560

    Here is the window.open() syntax

    ...but as far as I know, your popup will happend by the mercy of the clients
    browser settings...
    Note: last parameter string in the open() call shall have no spaces,
    the one that appears here is added during upload to the forum.
    Code:
    function popup() {
    		NewWindow=window.open( "http://www.hyperdictionary.com","popup",
    		"toolbar=0,location=1,status=1,menubar=1,scrollbars=1,resizable=1,width=820,height=700")
    	}
    eschew obfuscation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center