I absolutely cannot get my bookmark link to work!

liunx

Guest
<SCRIPT LANGUAGE="JavaScript"> <br />
function bookmark(url, description)<br />
{<br />
netscape="Netscape User's hit CTRL+D to add a bookmark to this site."<br />
if (navigator.appName=='Microsoft Internet Explorer')<br />
{<br />
window.external.AddFavorite(url, description);<br />
}<br />
else if (navigator.appName=='Netscape')<br />
{<br />
alert(netscape);<br />
}<br />
}<br />
//--> <br />
</SCRIPT> <br />
<a href=http://www.htmlforums.com/archive/index.php/"java script:bookmark('http://typeamerica1.netfirms.com/index.html','Real Jobs and Legitimate Opportunities');">Bookmark this Site</A><br />
<br />
<br />
The above code is exactly what's on my page. can anyone look at this entire thing and figure out what is causing my problem?<br />
I've been trying and trying to get it to work properly but it will not. When I click on the link from my page it says 'cannot find page" <br />
<br />
Please help me make it work<!--content-->there shouldn't be a space between java and script in the link <br />
<SCRIPT LANGUAGE="JavaScript"> <br />
function bookmark(url, description) <br />
{ <br />
netscape="Netscape User's hit CTRL+D to add a bookmark to this site." <br />
if (navigator.appName=='Microsoft Internet Explorer') <br />
{ <br />
window.external.AddFavorite(url, description); <br />
} <br />
else if (navigator.appName=='Netscape') <br />
{ <br />
alert(netscape); <br />
} <br />
} <br />
//--> <br />
</SCRIPT> <br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:bookmark('http://typeamerica1.netfirms.com/index.html','Real Jobs and Legitimate Opportunities');">Bookmark this Site</A> <br />
<br />
<br />
try that :D<br />
:badbob::rocker:<!--content-->Would you possibly be able to go to my page and take a look at the bookmark link (click on it or veiw my source code) to help me figure out what is wrong?<br />
My page is located at: <!-- m --><a class="postlink" href="http://www.typeamerica1.netfirms.com">http://www.typeamerica1.netfirms.com</a><!-- m --><br />
<br />
If you can I would appreciate it sooooooo much.<br />
<br />
If you can't I understand but I'll have to just take the bookmark link off of my page because I simply can't seem to fix it.<!--content-->Originally posted by currie <br />
Would you possibly be able to go to my page and take a look at the bookmark link (click on it or veiw my source code) to help me figure out what is wrong?<br />
My page is located at: <!-- m --><a class="postlink" href="http://www.typeamerica1.netfirms.com">http://www.typeamerica1.netfirms.com</a><!-- m --><br />
<br />
If you can I would appreciate it sooooooo much.<br />
<br />
If you can't I understand but I'll have to just take the bookmark link off of my page because I simply can't seem to fix it. <br />
u obviusly did whatI told u so now it works...in IE5 anyway...<br />
:badbob::rocker:<!--content-->works for me in IE6 too.<!--content-->Is there a way to make a bookmark link that will work for everyone no matter what browser they have?<!--content-->I don't think so.<br />
<br />
you can try this one which is a little different than what you have. just take all this code and put it in a file and call it favorite.js or something and put it in the page like so<br />
<br />
#Put this where you want the text to appear: <br />
<br />
<script SRC=http://www.htmlforums.com/archive/index.php/"favorite.js"></script><br />
<br />
<br />
<!-- Begin <br />
<br />
If ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { <br />
<br />
var url="http://www.yoursite.com"; <br />
<br />
var title="The title of your site"; <br />
<br />
document.write('<A HREF=http://www.htmlforums.com/archive/index.php/"java script:window.ext'); <br />
<br />
document.write('ernal.AddFavorite(url,title);" '); <br />
<br />
document.write('onMouseOver=" window.status='); <br />
<br />
document.write("'Add this site To your favorites !!!'; Return True "); <br />
<br />
document.write('"onMouseOut=" window.status='); <br />
<br />
document.write("' '; Return True "); <br />
<br />
document.write('">Add this site To your favorites</a>'); <br />
<br />
} <br />
<br />
Else { <br />
<br />
var msg = "Don't forget to bookmark this site for your future reference and return often"; <br />
<br />
If(navigator.appName == "Netscape") msg += " (CTRL-D)"; <br />
<br />
document.write(msg); <br />
<br />
} <br />
<br />
// End --><!--content-->I'll try that. <br />
<br />
Is there someplace where I can get different browsers so that I can check my site in them. <br />
And do they cost anything?<!--content-->you can Download <!--more--> Netscape 4.79 and Netscape 6.2 and mozilla1.1 and opera6 all for free at there respected sites.<!--content-->
 
Back
Top