Предположим, что у меня есть следующий код HTML, как я могу передать пользовательский ввод функции execute (str) JavaScript в качестве аргумента?
<body>
<input name="textbox1" type="text" />
<input name="buttonExecute" onclick="execute(//send the user input in textbox1 to this function//)" type="button" value="Execute" />
</body>