[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto java script



For the time being, if they have Netscape 2.0, it'll understand JavaScript.
So you can just use some JavaScript to re-direct the page.  Non-JS browsers
will ignore it:

<SCRIPT>
<!--
location = "newurl.html"
// -->
</SCRIPT>

This will work for the next several months.  Then some more browsers (like
Microsoft Internet Explorer) will support JavaScript.  So if you want to
look for Netscape users, you'll have to add a query to the script to make
sure you re-direct the right ones:

<SCRIPT>
<!--
if (navigator.appName=="Netscape")
        location = "newurl.html"
//-->
</SCRIPT>

-- Gordon McComb
http://gmccomb.com/javascript/


At 01:59 PM 3/21/96 -0500, you wrote:
>I am working on a javascript that will check to see if they have 
>netscape 2.0 and go to a pictular page if they do. Can't seem to get it 
>to work can anone help on this...
-- Gordon
http://gmccomb.com/javascript/


--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/