Results 1 to 6 of 6

Thread: resize window

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2001
    Location
    RI
    Posts
    25

    resize window

    how would you use vbscript to resize your window?
    - Gabe

  2. #2
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    I'm not sure if this just works in IE, but this will resize a browser window:

    Code:
    <html>
    <header>
    
    </header>
    
    <body onload="resizeTo(250,300)">
    This is the contents
    </body>
    </html>

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2001
    Location
    RI
    Posts
    25

    thanks

    thanks. do you also know how to get rid of the address bar and links on the browser so that only the X in the top right corner is avaiable?
    - Gabe

  4. #4
    CMangano
    Guest
    I know how to do this when you use JavaScript to open a new window.

    Let's say you have a link on your site "Click Me." The HTML looks like:

    Code:
    <a href="#" onClick="window.open('htmlpagetoopen.html', 'nameofwindow', 'height=200,width=200,toolbars=no,location=no,menubar=no');">Click Me</a>
    When the user clicks on the link, a new window will appear 200 pixels high, 200 pixels wide, and will not contain any of the browser menus.

    HTH

  5. #5
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    You cannot do this to a parent browser window, without having a signed script. However, if you open a window, in IE you can use a setting called fullscreen found in the window.open method.

    Here is the documentation on it:

    http://msdn.microsoft.com/library/de...ods/open_0.asp

    Now should you want to sign a script, go to verisign for info. This is the company that Microsoft recommends.

    http://www.verisign.com

    Hope this helps.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Apr 2001
    Location
    RI
    Posts
    25

    thanks

    thanks.
    - Gabe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width