I want to run a function when the page is loaded, but I don’t want to use it in the tag.
I have a script that runs if I initialise it in th
Taking Darin's answer but jQuery style. (I know the user asked for javascript).
running fiddle
$(document).ready ( function(){ alert('ok'); });