[HTML-HELP] Div + onClick

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bla5e
Forum Contributor
Posts: 234
Joined: Tue May 25, 2004 4:28 pm

[HTML-HELP] Div + onClick

Post 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?
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

might have to use JS to either open a new window or change the window's location
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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>
Post Reply