Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q55 How can I stop a link being loaded?

You are here: irt.org | FAQ | JavaScript | Link | Q55 [ previous next ]

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

©2018 Martin Webb