So, I have a text box and I have some javascript coding prompting for a value and then I want to put that value into the aforementioned text box.
My code is:
function prompter() {
X = prompt("Enter value","")
Update() }
function Update() {
document.form.txtbox.value = x }
The syntax is correct and have confirmed it by using more coding, but the text box does not update automatically after the script is run. Am I forgetting a step? So, if anyone has any ideas, they would be great. Thanks.
Tags: