<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>