<form id="loadconfigform"> Config Name: <input type="text" id="configname" name="configname" /> <input type="button" value="Submit" onclick="onLoadConfigPress(document.getElementById('configname').value);" /> </form>