PDA

View Full Version : auto-links


feignedboy
10-02-2004, 13:35
In HTML, how can I make a link open automaticly when a web page is opened?

ParrotBoy
10-02-2004, 13:46
You need to use a bit of JavaScript.

Do you want the link to open in a new window or the same one?

Same Window (i.e. just forward the user):
<body onLoad="window.location.href='THEURL';">

New Window:
<body onLoad="window.open('THEURL');">