I want to make a judgment page loading time, too long do not load the special effects of JavaScript code, but still a bit flawed, here is recorded.
IE browser with Document.execcommand ("Stop"), Chrome and Firefox with Window.stop (by the way, this is the method defined in the JavaScript standard), written together is the following way:
<body>
Here you can show
<script type= "Text/javascript" >
if (window.stop)
Window.stop ();
Else
Document.execcommand ("Stop");
</script>
It can't be shown here.
</body>
Of course, you can also abbreviate the JavaScript code to:
Window.stop? Window.stop (): Document.execcommand ("Stop");
Strangely enough, Firefox doesn't stop loading if you write the following code:
<body>
Here you can show
<script type= "Text/javascript" >
Document.execcommand ("Stop");
if (window.stop)
Window.stop ();
</script>
It can't be shown here.
</body>
In addition, this method can be used to prevent free space from displaying ads and being hung by horses.
Usually just put this piece of code in