moscarda
02-02-2009, 12:59 AM
I found this neat little script to only goto link on doubleclick:
<script>function goNow() {document.location="http://www.google.com/";}</script>
<a href="#" ondblclick="goNow()">google</a>
but i need to use this several places on the site. how do i do this? i tried using goNow(1), goNow(2), etc, but it didn't work. obviously i'm a javascript beginner, so cut me a little slack. thanks in advance.
<script>function goNow() {document.location="http://www.google.com/";}</script>
<a href="#" ondblclick="goNow()">google</a>
but i need to use this several places on the site. how do i do this? i tried using goNow(1), goNow(2), etc, but it didn't work. obviously i'm a javascript beginner, so cut me a little slack. thanks in advance.