HTML Element

Bcoloutlaw
06-02-2005, 11:13 PM
We set the "input type=text" with this:
htmlelement.value="ABCD"

We set the "input type = Checkbox" with this:
htmlelement.checked =true

We set the "Option" with this:
htmlelement.selected = true

How do we set the "input type=file"?

for example, we want to put the value "C:\windows\", How do we put it in htmlelement?

michael_hk
06-03-2005, 12:44 AM
Impossible due to security reason.

Qua
06-03-2005, 02:12 AM
This is not allowed by Internet Explorer. The File field is not able to hold any value - just as you can't set its value.

You may be able to do this by using Sendkeys()

Bcoloutlaw
06-06-2005, 01:32 AM
its sad man. I am using sendkeys now. but I am to load multiple webbrowsers and set values simultaneusly. I think sendkeys wo'nt work. Thankz. :(

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum