Use alert dialog as a way to debug : debug : Development JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Development » debug »

 

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:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Development
» debug