iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-11-2004, 02:26 PM
WebProWorld Member
 
Join Date: Mar 2004
Location: Ms
Posts: 60
C French RepRank 0
Default Compatible Java Script?

Is there a "Add to Favorites" Java script that will work with all browsers? I tried this one, but it onlys works with IE. How do I get one that works for Netscape & Mozilla?

Code:
<script language="JavaScript"><!-- 
if ((navigator.appName == 'Microsoft Internet Explorer') && 
(window.clientInformation.javaEnabled() == true )) { document.write("<SPAN 
STYLE='cursor:hand;'onmouseover='window.external.AddFavorite(location.href,d 
ocument.title);'></SPAN>"); } else { document.write(""); }// // --></script>
Can this part be altered to include the other browsers?
((navigator.appName == 'Microsoft Internet Explorer')

Thanks,
Charles
__________________
Decorating Country Home
Reply With Quote
  #2 (permalink)  
Old 11-11-2004, 02:54 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default Link to Javascript "Add Favourite"

Hi Charles,

You might want to try this approach
http://www.javascripter.net/faq/bookmar4.htm

Hope that helps!

Paul
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:21 PM.



Search Engine Optimization by vBSEO 3.3.0