|
Add your Web Page to the Client Browsers Favorites using Java
(Add your URL to Client Favorites) Java, as overused as it is, can be used to add your web site to the Client Browsers Favorites list. This is done with simple JavaScript inserted inside HTML.
Note: Because Java is executed by the client browser, it does increase risk of browser incompatibility.
Logic Flow:
The web page MyPage.asp loads A link is displayed that says "Add this site to your favorites"
<A
href
=
"javascript:window.external.AddFavorite('http://www.oocities.org/wilkeo','Memo wil@keo')"
onmouseout
=
"window.status='';return true"
onmouseover
=
"window.status='Add " Memo wil@keo " to your Favorites';return true"
>
Add this site to your favorites
</A>
The client clicks on the link and JavaScript included in the HTML adds the URL to the Favorites.
|
|