can't get this very simple thing right even though I wrote some considerably more complex code yesterday. Please can you tell me what I am getting wrong?
the function isn't firing at all as far as I can tell, I get no alerts.Code:document.onload = function() { alert("fired"); var rating = getElementById("ratingField"); if (rating == null) { alert("not null"); } }
I tried window.onload and if fires but document.onload isn't firing.
thanks,


Reply With Quote
Bookmarks