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

Q55 How can I stop a link being loaded?

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

Q55 How can I stop a link being loaded?

<script language="JavaScript"><!--
function gothere(href) {
    if (something == true)
        window.location.href = href;
}
//--></script>

<a href="javascript:gothere('http://www.yahoo.com')">http://www.yahoo.com</a>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


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