User:Yprockstaryogi

== ==

  var x=prompt("Enter a number between 0 and 10:",""); try { if(x>10) { throw "Err1"; } else if(x<0) { throw "Err2"; } else if(isNaN(x)) { throw "Err3"; } } catch(er) { if(er=="Err1") { alert("Error! The value is too high"); } if(er=="Err2") { alert("Error! The value is too low"); } if(er=="Err3") { alert("Error! The value is not a number"); } }

 function displayDate { document.getElementById("demo").innerHTML=Date; }

This is YOGESH PARGAIEN This is a simple test page.

Display Date

 function displayDate { document.getElementById("demo").innerHTML=Date; }

My First Web Page This is a paragraph.

Display Date

 function writeText(txt) { document.getElementById("desc").innerHTML=txt; }









Mouse over the sun and the planets and see the different descriptions.

 var txt=""; function message { try { adddlert("Welcome guest!"); } catch(err) { txt="There was an error on this page.\n\n"; txt+="Error description: " + err.description + "\n\n"; txt+="Click OK to continue.\n\n"; alert(txt); } }

