Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1587 How do I bookmark a frame using Javascript?

You are here: irt.org | FAQ | JavaScript | Frame | Q1587 [ previous next ]

Only in Internet Explorer E4+:

<script language="JavaScript"><!--
function addtofav(linkUrl,linkTitle){
  if (!document.all) {
    alert('Please hit ctrl-d to bookmark this page');
  }
  else external.AddFavorite(linkUrl,linkTitle);
  return false;
}
//--></script>

<a href="javascript:;" onClick="addtofav(window.location.href,document.title); return false">Add this page to favorites</a>

©2018 Martin Webb