M
Mel Smith
Hi:
I'm trying to place and activate an 'onclick' parameter in an anchor
element, eg,:
<a id="a123" onclick="return chkfile(this.id);"
href="http://www.someurl.com/files/somefile.zip" >Check, then Get Some
File</a>
Problem: I don't seem to reach the javascript function
chkfile(cSomeId). I placed an alert box in it and also returned 'true', but
the alert never shows. Even returning 'false' doesn't stop the beginning of
the download. And the download works with or without the onclick function.
Can someone provide some corrective advice please ?
Thanks,
I'm trying to place and activate an 'onclick' parameter in an anchor
element, eg,:
<a id="a123" onclick="return chkfile(this.id);"
href="http://www.someurl.com/files/somefile.zip" >Check, then Get Some
File</a>
Problem: I don't seem to reach the javascript function
chkfile(cSomeId). I placed an alert box in it and also returned 'true', but
the alert never shows. Even returning 'false' doesn't stop the beginning of
the download. And the download works with or without the onclick function.
Can someone provide some corrective advice please ?
Thanks,