Supponiamo di avere il seguente codice HTML, come posso passare l'input dell'utente per eseguire (str) la funzione JavaScript come argomento?Come passare il testo in una casella di testo alla funzione JavaScript?
<body>
<input name="textbox1" type="text" />
<input name="buttonExecute" onclick="execute(//send the user's input in textbox1 to this function//)" type="button" value="Execute" />
</body>
Grazie per tutte le risposte. :) – natch3z