PrateekSaxena Posted March 10, 2007 Share Posted March 10, 2007 Hello ,When a JS file is running and we put an alert in between using alert("hi"); then the whole code that we have written stops working and the alert is displayed. Only once after we have pressed the OK button then only the the rest of the code is executed. While the alert box is being displayed no code is being executed right ?Now I want to know how I can stop the execution of the code in the same way but without the alert box being popped up every now and then ?? Link to comment Share on other sites More sharing options...
Chocolate570 Posted March 11, 2007 Share Posted March 11, 2007 Hello ,When a JS file is running and we put an alert in between using alert("hi"); then the whole code that we have written stops working and the alert is displayed. Only once after we have pressed the OK button then only the the rest of the code is executed. While the alert box is being displayed no code is being executed right ?Now I want to know how I can stop the execution of the code in the same way but without the alert box being popped up every now and then ??Yes, that is correct. I suggest you get FireFox and download the Firebug extension. It allows you to add breakpoints, which do exactly what you want. Link to comment Share on other sites More sharing options...
vytas Posted March 11, 2007 Share Posted March 11, 2007 Where are u using it for ? Link to comment Share on other sites More sharing options...
PrateekSaxena Posted March 12, 2007 Author Share Posted March 12, 2007 Well, I need to put a breakpoint due to some reasons that you will know about soon if you check out the "General" category of the forum and I will tell everyone!!! :)So can someone please help me out?? Link to comment Share on other sites More sharing options...
jesh Posted March 12, 2007 Share Posted March 12, 2007 So can someone please help me out??Choco had the answer: Download the FireBug extension for Firefox. Link to comment Share on other sites More sharing options...
PrateekSaxena Posted March 12, 2007 Author Share Posted March 12, 2007 I wanted to know this for http://w3schools.invisionzone.com/index.ph...c=11677&hl= Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now