SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Aug 7, 2006, 07:13 #1
Getting the dynamic width of a div
I'm using
Code:var w = document.getElementById('center').offsetWidth;
Also, what code do I need to do, to re-run this code upon the resizing of the browser window? I can't seem to find the right command or code to do this. Isn't there a onWindowResize behavior or something? I'm a NOOB to JS, just an FYI.Not another drugstore, not another town
Tired of the overdrop, I had to put it down
You know I was the man when I put the Crown down
Then rolled around the Chemicals to pave the New Sound
-
Aug 7, 2006, 07:45 #2
Is
Code:<body onResize="document.location.href = document.location.href">
Not another drugstore, not another town
Tired of the overdrop, I had to put it down
You know I was the man when I put the Crown down
Then rolled around the Chemicals to pave the New Sound
Bookmarks