hyperlink - Javascript trouble -


I am trying to create a calculator with Javascript, and I have some problems ... in the code

  1. Try adding some values, and you will see that the box that says box will change according to the values ​​you enter. However , you'll also see that if you click Clear Form, the value will not be returned TOTAL. How do i do this
  2. I want to link to javascript (like & lt; script type = "text / javascript" src = "mydomain.com/calculate.js></script> ), But if I try, it does not work right! Help!

    Thanks!

    Add your explicit form button like:

      onClick =" document.getElementById ('totalDiv'). InnerHTML = ' 



Comments