SyntaxFix
Write A Post
Hire A Developer
Questions
Taking Darin's answer but jQuery style. (I know the user asked for javascript).
running fiddle
$(document).ready ( function(){ alert('ok'); });?