Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

?
Javascript script doesn't work...?
Sorry I couldn't be more descriptive! I'm trying to add an onclick command to a script and want but it isn't working. Wonder if anyone could tell me why?
<SCRIPT LANGUAGE="javascript">
document.write('<A id="iddownload1" HREF="')
document.write('bears1prin.pdf"><img src="images/download.png" onClick="_gaq.push(['_trackEvent', 'firstpage', 'ositos']);"></a>')
</script>
</a>
This doesn't do anything it seems. Doesn't show an image. But yet this works fine:
<SCRIPT LANGUAGE="javascript">
document.write('<A id="iddownload1" HREF="')
document.write('bears1prin.pdf"><img src="images/download.png"></a>')
</script>
</a>
3 AnswersProgramming & Design10 years ago