Thread: resize a window

    #1
  1. No Profile Picture
    dd
    Guest
    Devshed Newbie (0 - 499 posts)
    Is there any way to adjust the size of a window such as the onload statement?

    I am using another language to generate some database popups but it doesn't support window size. I need to reset the size after it is created if possible.

    Thanks for any help!!

    Dale
  2. #2
  3. No Profile Picture
    dahamsta
    Guest
    Devshed Newbie (0 - 499 posts)
    You can resize a window with self.resizeTo(), however it has some weird effects. We used it on a sample site sometime back and it tends to get the window "stuck" to the size and place it has been resized to. This can be very annoying for users. Anyway, here's an example using onload.

    <html>
    <head>
    <script language="JavaScript">
    <!--
    function sizeMe() {
    self.resizeTo(640,480);
    }
    // -->
    </script>
    <body onLoad="sizeMe()">
    blah blah...

    Cheers,
    adam

Similar Threads

  1. javascript parent window resize problem
    By munna in forum JavaScript Development
    Replies: 1
    Last Post: November 22nd, 2004, 07:44 AM
  2. javascript resize window help
    By gabis in forum JavaScript Development
    Replies: 2
    Last Post: October 1st, 2003, 05:14 PM
  3. Pop Up window resize
    By EnigmaedgE in forum HTML Programming
    Replies: 1
    Last Post: August 15th, 2003, 06:09 AM
  4. window resize issues...
    By ChrisB009 in forum HTML Programming
    Replies: 0
    Last Post: August 7th, 2003, 11:30 PM
  5. custom everything in new window, how?
    By edwinx in forum HTML Programming
    Replies: 6
    Last Post: June 29th, 2001, 02:06 AM

IMN logo majestic logo threadwatch logo seochat tools logo