Darn
01-05-2011, 07:25 AM
Hey,
I've got a question regarding javascript. I'm a total novice at this and I would love to hear any advice which could help me resolve this problem.
I've got a html document with something like this:
<form>
<input type="button" value="Sum up" name="A" onClick="calculate()">
</form>
The thing is onClick="calculate()" transfers me to a new page and I need this function (calculate) shown below this button on the same page. I'm out of ideas of how should I do this.
Thanks in advance
I've got a question regarding javascript. I'm a total novice at this and I would love to hear any advice which could help me resolve this problem.
I've got a html document with something like this:
<form>
<input type="button" value="Sum up" name="A" onClick="calculate()">
</form>
The thing is onClick="calculate()" transfers me to a new page and I need this function (calculate) shown below this button on the same page. I'm out of ideas of how should I do this.
Thanks in advance