Forum Moderators: open
<script language="Javascript">function go (uri){ location.href=uri; return false;}</script><A href="javascript:" onClick="go('http://www.google.com');">Test</a>
</script>
<A href="javascript:" onClick="go('http://www.google.com');">Test</a>
I don't know why the JS not working. Any hint?
Try Replace this <A href="javascript:onClick=go('http://www.google.com');">Test</a>
Hope this helps,
Chiu
<A href='#' onClick="go('http://www.google.com');">Test</A>
The onClick should overwrite href. I am confused. I tried replace "return false" with "return true" or "", no luck.
<a href='#' onClick="go(uri)">Test</a>
or
<a href="javascript:go(uri)">Test</a>
but this doesn't work:
<a href='javascript:' onClick="go(uri)">Test</a>
onClick should overwrite href, shouldn't it?