Window.stop() (Method)

This duplicates the behavior of the Stop button on the Netscape Navigator button bar.

Availability:

JavaScript - 1.2
Netscape - 4.0
Property/method value type:undefined
JavaScript syntax:-myWindow.stop()
-stop()

This is a means of immediately halting the script being executed. It's likely this will mainly be used in an error handler, although you may want to conditionally prevent a form from being submitted.

It is effectively the same as clicking on the Stop button in the toolbar.

Warnings:

See also:Frame object, Window object, Window.find(), Window.home(), Window.print()