Use alert dialog as a way to debug
|
|
<html> <head> <title>Debug Example</title> <script type="text/javascript">
function myfunction() { alert("Entering function.");
var iNumber1 = 5; var iNumber2 = 10;
alert("Before calculation."); var iResult = iNumber1 + iNumber2; alert("After calculation."); }
myfunction();
</script> </head> <body> </body> </html>
|
|
|
HTML code for linking to this page:
Related in same category :
-
|