Page 1 of 1

Javascript: Stop page from going to another one

Posted: Tue Jun 13, 2006 4:30 pm
by tecktalkcm0391
Ok, I want to know if this is possible and what I should look for:

I have a link to files, and they take a long time to load, so I want to make a button that come up when the user clicks on file (i know how to do that) but what i don't know what to do is stop the transfer to the next page. Do you get what I am saying. I just want it to stay on the page with the button and not go to the next page.

Posted: Tue Jun 13, 2006 4:57 pm
by pickle
So you want a button that effectively does the same thing as pressing the 'STOP' and 'BACK' buttons in one click?

I'm not sure that's possible. If you're linking to a non-html file, there's no way to get Javascript to execute.

Posted: Tue Jun 13, 2006 6:33 pm
by tecktalkcm0391
Really I just want the STOP button, I know how to do a back, but I don't need it. I just want STOP from html page to html page.

Posted: Thu Jun 15, 2006 3:49 pm
by tecktalkcm0391
i got it in Netscape use... window.stop().. in IE document.execCommand('Stop')