Friday, February 21, 2003 02:35 AM
2. To do/call more than one thing/function you can write all those within the onload function. Alternatively and more cleanly, you can call a function in the onload and do whatever in that function.
3. The question is not very clear here!!! you just want to write in inline or want to write it dynamically say on click of a button or something? For writing inline use
document.write("Congrats!!! You have passed with a score of "+score);
document.write("Sorry... Your score of "+score+" doesnot qualify you.");
(needless to say... this should be inside the body tag and withing scripts tag).