Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Add two numbers karan chanana

Related Books

Free with a 30 day trial from Scribd

See all
  • Be the first to comment

  • Be the first to like this

Add two numbers karan chanana

  1. 1. Add two numbers<html> <head> <title>Input tutorial</title> <script language="javascript"> function addNumbers() { var val1 =parseInt(document.getElementById("value1").value); var val2 =parseInt(document.getElementById("value2").value); var ansD = document.getElementById("answer"); ansD.value = val1 + val2; } </script> </head> <body> value1 = <input type="text" id="value1" name="value1" value="1"/> value2 = <input type="text" id="value2" name="value2" value="2"/> <input type="button" name="Sumbit" value="Click here"onclick="javascript:addNumbers()"/> Answer = <input type="text" id="answer" name="answer" value=""/> </body></html>

    Be the first to comment

    Login to see the comments

Views

Total views

130

On Slideshare

0

From embeds

0

Number of embeds

1

Actions

Downloads

1

Shares

0

Comments

0

Likes

0

×