I'd like to know how to write a downloads counter that changes a var in an external .js file??
the var is named after the id of the textbox that displays the number held within that var...
eg:
external file:
var txtbx = 0
html:
<script type="text/javascript">
count() //writes the increased value to the var in the external file
//(var to change is based on the input ID)
</script>
<a href... onclick="count()">download</a>
<span style="align:right">
Downloads: <input type="textbox" id="txtbx" value=txtbx>
</span>
can anyone help??