Adding page to Favourites

L

Lynn

Have searched various sites looking for ways to add a text link to allow the
saving of a webpage to the Favourites Folder.
ie "Click here to save to Favourites".
Can anyone pass on their expertise on this please.
 
S

Steve Easton

Try this one:
Place the entire script in the location on the page where you want the text to appear

<SCRIPT>
<!--
if ((navigator.appVersion.indexOf("MSIE") > 0)
&& (parseInt(navigator.appVersion) >= 4)) {
document.write("<U>
<SPAN STYLE='color:blue;cursor:hand;'
onclick='window.external.
AddFavorite(location.href, document.title);'>
Add this page to your favorites</SPAN>
</U>");
}
//-->
</SCRIPT>



--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
T

Trevor L.

This doesn't work for me, but I did place it in a frame. Would this make any
difference?
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au

Steve said:
Try this one:
Place the entire script in the location on the page where you want
the text to appear

<SCRIPT>
<!--
if ((navigator.appVersion.indexOf("MSIE") > 0)
&& (parseInt(navigator.appVersion) >= 4)) {
document.write("<U>
<SPAN STYLE='color:blue;cursor:hand;'
onclick='window.external.
AddFavorite(location.href, document.title);'>
Add this page to your favorites</SPAN>
</U>");
}
//-->
</SCRIPT>


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
S

Steve Easton

Yes.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
T

Trevor L.

Hmm.

I thought it may

What do I change?
Should this:
AddFavorite(location.href, document.title);'>
be this:
AddFavorite(parent.location.href, parent.document.title);'>
?
 
T

Trevor L.

I tried
<SCRIPT>
<!--
if ((navigator.appVersion.indexOf("MSIE") > 0)
&& (parseInt(navigator.appVersion) >= 4)) {
document.write("<U>
<SPAN STYLE='color:blue;cursor:hand;'
onclick='window.external.
AddFavorite(parent.location.href, parent.document.title);'>
Add this page to your favorites</SPAN>
</U>");
}
//-->
</SCRIPT>

It returns the correct values (as tested using an alert box), but I get the
error "PermissionDenied"
 

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