Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1722 How can I force an unclicked link to look as though it had been clicked?

irt.org | Knowledge Base | JavaScript | Link | Q1722 [ previous next ]

Q1722 How can I force an unclicked link to look as though it had been clicked?

Try:

<script language="JavaScript"><!--
var url = 'http://www.qwerty.com';
var text = 'back';

document.write('<a href="' + location.href + '" onMouseOver="this.href=\'' + url + '\';status=\'' + url + '\';return true">' + text + '</a>');
//--></script>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.