Thread: Adding Favorites
Results 1 to 2 of 2
Related
-
Adding another <DIV> or adding image to menu Forum: CSS Forum
Replies: 1 -
Adding New Site URL to Favorites on Redirect Forum: HTML Forum
Replies: 1 -
adding up my values Forum: Javascript Forum
Replies: 1 -
Adding Music Forum: HTML Forum
Replies: 6 -
add favorites--customizable? Forum: HTML Forum
Replies: 6
-
09-24-2004, 02:57 PM #1
Adding Favorites
Can someone post the html or java code for adding favorites for a website? When people go to my site i want a popup option for letting the visitor have the option to add my site to their favorites (bookmarks), thanks a mill.
-
09-25-2004, 11:16 AM #2bald headed old fart
Status- Offline
Join Date- Aug 2003
Location- chertsey, a small town 25 miles south west of london, england.
Posts- 739
Hi there Ajax,
as 'Add to Favorites' is I.E. only you might like to hide it from other browsers.
If so place this code within the head section...Code:<style type="text/css"> <!-- #fav { display:none; } button { width:210px; } //--> </style> <script type="text/javascript"> <!-- function favorites() { if(document.all) { document.getElementById("fav").style.display="block"; } } onload=favorites; //--> </script>
Code:<div id="fav"> <button onclick = "window.external.AddFavorite(location.href,document.title);">Add This Site To Your Favorites</button> </div>
then it will be the pop-up that is added to favorites
coothead
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum