Layout ] Multimedia ] Programming ] Scripting ] Communicate ] Navigation ]

Forwarder Script

Up ] Script Tag Syntax ] [ Forwarder Script ] Extra IE Features ] ActiveX Example 1 ] ActiveX Example 2 ] ActiveX Example 3 ] ActiveX Example 4 ]

If you put the following code between the <HEAD> and </HEAD> tags, it will automatically forward to a VBScript enhanced page if the browser supports VBScript, a JavaScript Version if it supports JavaScript, and a Non-Script Version if it supports neither.  It would also be a good idea to put a link to nonscript.html in the body of the page.  Most people will never see the body of the forwarding page, having already been taken elsewhere, but some browsers don't support client pull (the META tag).   You can replace the filenames with filenames and paths of your own, and if you don't want to make a JavaScript version, you can just take out that Script tag and the lines inside it.

<SCRIPT LANGUAGE=VBScript>
<!--
Window.Location.Href = "vbscript.html"
'-->
</SCRIPT>
<SCRIPT LANGUAGE=JavaScript>
<!--
window.location.href = "javascript.html";
//-->
</SCRIPT>
<META HTTP-EQUIV="REFRESH" CONTENT="00; URL=nonscript.html">

You are free to use this script, and any variations upon it, without any restrictions whatsoever.

Layout ] Multimedia ] Programming ] Scripting ] Communicate ] Navigation ]
Script Tag Syntax ] [ Forwarder Script ] Extra IE Features ] ActiveX Example 1 ] ActiveX Example 2 ] ActiveX Example 3 ] ActiveX Example 4 ]

The Web Wizard's Spellbook © 1998, Team WWS