This works:
This doesn't:
mybla is null at this point. argh. How can I make this work? Thanks!!!
(and yes, I want the div below the script)
Answer
Because the DOM isn't fully loaded yet. You need to put your code in an onload
handler if you want it above the HTML. Like this:
No comments:
Post a Comment