Forum Moderators: open

Message Too Old, No Replies

how to make home page on computer

home page settings on webpage

         

nagarjuna

8:40 am on May 18, 2004 (gmt 0)

10+ Year Member



dear readers,
1) please help me ihave seen in some websites that they provide an icon to make their webpage as homepage by clicking that icon if you open a new window .the site of them will open with out writing their address on internet explorer address box.
2) the second one is if we open one website the another advertise webpage also opens,how it is possible,please help me for doing this ,if website (1) is open then immediately website(2) will open as in anotherwindow.

BlobFisk

8:56 am on May 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, nagarjuna!

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

R1chard

11:28 am on May 20, 2004 (gmt 0)

10+ Year Member



(1) The above function only works with ie. I think there was a version of it for Netscape 4, but it was probably dropped (?) from later versions due to security fears...

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]

Bonusbana

2:19 pm on May 20, 2004 (gmt 0)

10+ Year Member



A good and accessible way of opening so-called 'popups' is by doing it this way:

<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.