1. Check your ID's in your
HTML match (remember they're case sensitive)
2. Check the function is actually loaded and the height value is correct - use;
- Code: Select all
alert(newHeight);
at the end of your function. If you get no message box when you load the page, something's wrong with your
onload function.
3. Using Firefox? Got Firebug or the Web Developer Toolbar? You can use these to check if there's an issue with your JavaScript.
4. This is the most useful - with the web developer toolbar you can view the
generated source (the
HTML generated with JavaScript) and see if your styles are actually being set.