Expand|Select|Wrap|Line Numbers
- <script type="text/javascript">
- var one="has been a total of"
- var two="downloads on this item"
- var number="0"
- var add="1"
- function count() {
- if(id="downloadone") {
- number+add;
- Alert("There + one + add + two")
- window.open("DownloadLink", "window name");
- }
- }
- </script>
- <form>
- <input type="button" value="Download" id="downloadone" onClick="count();">
- </form>
There has been a total of 1 downloads on this item
no matter how many people click the download button.
thats if that if condition works at all "if(id="downloadone")"
anyway overall i need help on how i can make a hit counter out of this. obvisoulty no cookies that doesent work very good it will just count for each seperate computer alone. not total downloads.