How do i get data from a html input to a variable accessible by JavaScript

Viewed 10

Im making a javascript / html program and i need to get data from (HTML)

<input type="text" id="in1" onclick="startscript()">   

To a variable called 'Input1' (JavaScript)

how can i do this??

0 Answers
Related