Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


    I wish to capture a 'click' on an anchor *before* the associated
download begins.

    But, I can't seem to make it work.  Here is a stripped version of my

    <a id="a001" onclick="chkfile(this.id);"
href="http://www.someurl.com/files/somefile.zip ">Get This File</a>

    where I have a javascript function chkfile() that *should* (I think) get
called before the browser begins the download sequence.

    Do I misunderstand the anchor parameters ??

    btw, the download works correctly with & without the onclick parameter.

Thanks for a corrective hint on this !

Mel Smith

Site Timeline