george Posted November 14, 2007 Share Posted November 14, 2007 May I set the "active, hover, visited" state of a link? <a href="here" id="thislink" onclick="dosomethin();">Blah</a> <script type='text/javascript'>function dosomethin() {document.getElementById('thislink').active=false;}</script> Link to comment Share on other sites More sharing options...
justsomeguy Posted November 14, 2007 Share Posted November 14, 2007 You can't set that type of thing. An active link is a link that is being clicked on, you can't change that. You can make something happen when you hover over a link or click on it, but you can't set whether or not the link is being hovered or clicked on. Link to comment Share on other sites More sharing options...
Ingolme Posted November 14, 2007 Share Posted November 14, 2007 Just apply the same style to the link when it's activated as when it's not. If all that matters is the style. Link to comment Share on other sites More sharing options...
george Posted November 14, 2007 Author Share Posted November 14, 2007 Thanks all. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.