#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    2
    Rep Power
    0

    Javascript Refresh


    I am facing a challenge where a user may resize a page from 100% to 75% and the Javascript I have written won't reload. The script checks for border and font color and changes to the correct when the page loads.

    Can someone give me a quick fix to rerun the script upon refresh? A timer setting starts in .5 milliseconds and looks for the formatting in the web page and changes the font/border.

    Any help would be appreciated.
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,041
    Rep Power
    119
    Use the window.onresize event; add your function to this event and when the page is re-sized; your function will be triggered each time the page size changes.

IMN logo majestic logo threadwatch logo seochat tools logo