How do I input data into a function in javascript?

5 pts.
Tags:
HTML
JavaScript
js
So can I begin by saying I'm very new to javascript so please don't be sarcastic or mean I know what I'm asking for is probably very simple. But say I wanted to write an external java script that times two numbers together I create a function that has var result = x*y alert (result) ect. how do I then link it with the text fields on the html document.
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: