|
Q553 How can I use the replace method on a normal text link?
irt.org | Knowledge Base | JavaScript | Link | Q553 [ previous next ]
Q553 How can I use the replace method on a normal text link?
Try:
<script language="JavaScript"><!--
function go(url) {
if (document.images)
location.replace(url);
else;
location.href = url;
}
//--></script>
<a href="http://www.irt.org/" onClick="this.href='javascript:go(\'http://www.irt/org\')'">irt.org</a>
|
Note: in Opera replace() will work, but only with absolute URL's.
|
|
Copyright © 1996-2009 irt.org, All Rights Reserved.