Open links in Netscape

D

Dave

I have a link that only works in netscape...yet most
everyone's default browser is IE. Is there a way to load
a link only in netscape as opposed to whatever browser
someone may use?
 
J

Jim Buyens

-----Original Message-----
I have a link that only works in netscape...yet most
everyone's default browser is IE. Is there a way to load
a link only in netscape as opposed to whatever browser
someone may use?

You would have to write some JavaScript code that detects
the presence of Netscape, and only then emits the code you
want. Here's an example.

<script>
if (navigator.appName == "Netscape"){
document.write("<a href='http://www.microsoft.com/ie'>"
+ "Another Browser</a>");
}
</script>

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top