Page 1 of 1

[HTML-HELP] Div + onClick

Posted: Tue Jun 22, 2004 9:18 pm
by bla5e

Code: Select all

<div id="ircclick" style="position:absolute; left:610px; top:434px; width:138px; height:10px; z-index:1" onClick="irc://irc.gamesurge.net/xnetwham"></div>
how do i make it so when you click on a layer, it lauches a url/link?

Posted: Tue Jun 22, 2004 9:58 pm
by Illusionist
might have to use JS to either open a new window or change the window's location

Posted: Tue Jun 22, 2004 10:00 pm
by feyd
try

Code: Select all

<div id="ircclick" style="position:absolute; left:610px; top:434px; width:138px; height:10px; z-index:1" onclick="document.location.href = 'irc://irc.gamesurge.net/xnetwham'"></div>