[thelist] javascript pop-up problem

.jeff jeff at members.evolt.org
Mon Jul 23 18:50:01 CDT 2001


jeremy,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Jeremy Ashcraft
:
: I like to use <a href="javascript: void(0);"
: onClick="............">
:
: When calling JS functions from links and
: buttons(wouldn't plain "javascript:"
: pop open the JS debug window in NN4?)
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

yes, *if* it was just "javascript:".  however, if you go back and look at
the suggestions you'll see that there is either two slashes (// -- single
line javascript comment) or an end-of-line statement (; -- semicolon).  this
is different than just calling the javascript protocol on its own.  you're
welcome to use the void() method if you like, but it's only supported from
js1.1 forward.  i'd personally prefer to use something that's supported by
everyone and readable -- the single line comment (//).

thanks,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/






More information about the thelist mailing list