Jump to content

Anchor Object May I


george

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...