Zaiton Zaiton - 1 year ago 67
Javascript Question

Setting the value of an imput box - Javascript

I'd like to know how to manually set a value to that box, similar to how I'd write it on the keyboard. The box itself doesn't have an ID so I can't use

so I'm kinda stuck.

Here's a picture for reference.

Basically what I want to do is go to console and set the value of that box equal to 123 for example, without having to click on it with my mouse and type it on the keyboard. Something like
getElementByID.value = 15
for instance.

Thank you

Answer Source

Try this

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download