[thelist] javascript://

Bruce Heerssen bheerssen at visualbridge.tv
Wed Jun 27 16:18:05 CDT 2001


Anthony Baratta wrote:

> Howdy...
>
> .jeff mentioned this elegant hack to the HREF:
>
> [a href="javascript://" onCLick="verifyForm(document.FormName);" ...]
>
> However if my function has a .submit(), the function fails to submit. 
> The whole function works fine (both IE and Netscape) except the submit 
> when javascript:// is in the HREF.  If I remove the javascript:// it 
> submits.
>
> Go figure. Any clues?? 

I'll take a stab at it. I think that it's because the "javascript://" 
portion is trying to execute while the form is trying to submit, which 
causes a conflict. I think the href is winning, but nothing actually 
happens because there's nowhere to go. Try putting in a url and see what 
happens.

Whatcha think, am I on base here?

Bruce







More information about the thelist mailing list