In this JavaScript Tutorial, we will see how to debug a JavaScript using IE and Chrome browsers. Here, we will not use any plug-ins. We just use whatever that ships with chrome & IE browser for Javascript Debugging.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
<!DOCTYPE HTML> <HTML> <HEAD> <TITLE>Learn Java Script</TITLE> <script type="text/javascript" > var Today = new Date(); </script> </HEAD> <BODY> <H1> JavaScript Math Functions </H1> <br/> <h3> Today's Date and Time</h3> <script type="text/javascript" > document.write(" The Date is :" + Today.toDateString() + "<br/>"); document.write(" The Time is :" + Today.toTimeString() + "<br/>"); document.write("Full Date is :" + Today.toString() + "<br/>"); </script> <h3> Date By-Parted</h3> <script type="text/javascript" > document.write(" Date : " + Today.getDate() + "<br/>"); document.write(" Day : " + Today.getDay() + "<br/>"); document.write(" Month : " + Today.getMonth() + "<br/>"); document.write(" Year : " + Today.getFullYear() + "<br/>"); document.write(" Hour : " + Today.getHours() + "<br/>"); document.write("Minutes : " + Today.getMinutes() + "<br/>"); document.write("Seconds : " + Today.getSeconds() + "<br/>"); </script> </BODY> </HTML> |
Categories: JavaScript-Tube