Advertisement
contatowellington

Untitled

Sep 25th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Script que multiplica:
  2. <script language="javascript">
  3.  
  4. function multiplica()
  5. {
  6. numer1 = parseFloat(document.frmitementrada.quantidade.value);
  7. numer2 = parseFloat(document.frmitementrada.preuni.value);
  8. soma = numer1 * numer2;
  9. document.frmitementrada.total.value = soma;
  10. }
  11. </script>
  12.  
  13.  
  14. <INPUT NAME="quantidade" TYPE="text" onFocus="multiplica()" onKeyUp="multiplica()" value="1" SIZE="3" autofocus>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement