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<html>  <head>         <title>Input tutorial</title>         <script language="javascript">                ...
Upcoming SlideShare
Loading in …5
×
Upcoming SlideShare
Reformas
Next
Download to read offline and view in fullscreen.

0

Share

Download to read offline

Add two numbers karan chanana

Download to read offline

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • 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>

Views

Total views

132

On Slideshare

0

From embeds

0

Number of embeds

1

Actions

Downloads

1

Shares

0

Comments

0

Likes

0

×