SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Mar 2005
    Location
    Toronto
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    unusual javascript behavior in need

    I am wondering if there is a method to allow javascript codes to be called everytime when the user resizes the window. The reason why I am doing this is because I am using a javascript to set the dimension for a div, and it must be dynamically resized every time the window size changes. Thanks for any suggestions!
    In search of the clouds...and maybe some work

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use the window.onresize event.



Bookmarks

Posting Permissions

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