0

I have this HTML:

<form name=tett>
    <input type=text name=tf value="testing prompt" size=15>
</form>

And this JavaScript:

var df = prompt(" enter your name ");
document.tett.tf.value = df;

How can I do this in VBScript?

4
  • 1
    First probably learn VBScript. Commented Dec 1, 2011 at 6:06
  • 2
    My question is not how but WHY would you want to do that? Commented Dec 1, 2011 at 6:06
  • Because I try to lean to do this in V.b... I get some book but don't tell me anything about this situation.... Commented Dec 1, 2011 at 6:09
  • 1
    Also take a look at the DOM - that sort of variable access is pretty old. You should be using document.getElementById and attaching an id to the input element. See developer.mozilla.org/en/DOM/document.getElementById Commented Dec 1, 2011 at 6:12

1 Answer 1

2

It should be something like this :

df = InputBox("enter your name");
form.tf.value = df;

.. but don't mind me asking: why do you want to do this in the first place?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.