File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Invoke the stop(X) method of web browsers such as Mozilla, IE and Opera Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Invoke the stop(X) method of web browsers such as Mozilla, IE and Opera" Watch "Invoke the stop(X) method of web browsers such as Mozilla, IE and Opera" New topic
Author

Invoke the stop(X) method of web browsers such as Mozilla, IE and Opera

Jeramie Maratas
Greenhorn

Joined: Mar 16, 2004
Posts: 13
I am developing an upload-download solution thru the web browser. If the user wants to cancel the upload operation, I want to invoke the stop method of IE/Mozilla/Opera.
Do you have any idea how to do this? Id appreciate it if anyone can help. Thanks...

Best Regards,
Jen


Best Regards,
Jen
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
I think this is it...

if(document.all)document.execCommand('Stop');
else window.stop();
Jeramie Maratas
Greenhorn

Joined: Mar 16, 2004
Posts: 13
Thanks a lot Eric. It worked for me. Thanks to you.

Best Regards,
Jen
 
 
subject: Invoke the stop(X) method of web browsers such as Mozilla, IE and Opera
 
Threads others viewed
How to make a JavaBrowser
Mozilla vs Opera
Netscape href issue
Session variables not displaying in Mozilla or Opera, only IE
accept attribute in <html:file
MyEclipse, The Clear Choice