»
EnglishFrenchVietnamese

Print - Bookmark Page script - JavaScriptBank.com

Full version: jsB@nk » Browser » Window » Bookmark Page script
URL: http://www.javascriptbank.com/bookmark-page-script.html

Bookmark Page script © JavaScriptBank.comA cross-browser bookmarking script that not only works in Internet Explorer but also Firefox. Other browsers will get an alert message telling them how to bookmark the page.

Full version: jsB@nk » Browser » Window » Bookmark Page script
URL: http://www.javascriptbank.com/bookmark-page-script.html



CSS
<style type="text/css">INPUT.demo {BORDER-RIGHT: thin solid; PADDING-RIGHT: 0.3em; BORDER-TOP: thin solid; PADDING-LEFT: 0.3em; PADDING-BOTTOM: 0.3em; BORDER-LEFT: thin solid; COLOR: #00009c; PADDING-TOP: 0.3em; BORDER-BOTTOM: thin solid; BACKGROUND-COLOR: #fff}</style><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<script language="javascript" name="bookMark.js">// Created by: Philip Myers :: http://virtualipod.tripod.com/bookmark.htmlfunction bookmark(url,title){  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {  window.external.AddFavorite(url,title);  } else if (navigator.appName == "Netscape") {    window.sidebar.addPanel(title,url,"");  } else {    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");  }}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<input type="button" value="Bookmark us!" class=demo onclick="bookmark('http://javascriptbank.com/','J a v a S c r i p t  B a n k')"><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->