Forum Moderators: open
There is a JavaScript function called AddFavourite which takes the URL and Page Title to be bookmarked. It is, I believe, supported by IE only though.
To open a second page at the same time as another page loads page you can write a javascript window.open function (to open a new window) and launch it onLoad.
HTH
navigator.preference("browser.startup.homepage",url); But with a modern browser it's usually easier just to drag a link (or URL bar icon) into your bookmark list or Home button...
(2) I wouldn't bother with popup windows- they only annoy most people. A lot of people have mozilla/opera/etc to block popups, and within another year the success rate for launching one will likely drop below 10%.
[edited by: R1chard at 2:28 pm (utc) on May 20, 2004]
<script type="text/javascript">
function openWin(href) {
window.open(href,'window','width=400, height= 600, top=30, left=30, statusbar=1, scrollbars=1');
}
</script>
<a href="index.htm" onclick="openWin(this.href); return false;">click me</a>
If the user has popups or javascript disabled, the new page will still load, but in its own window.