set focus to input in frame

N

Nelson

I have the following input line in "upload.asp":
<input type="file" name="file1" size="40">

When I navigate IE to "upload.asp" (without frames), this line works to set
focus to "file1" input:
Ie.Document.all("File1").focus
but it doesn't work when "upload.asp" is in a frame.

What is the syntex to set focus to "file1" when "upload.asp" is in the
second frame as below?:
<frameset rows="75,*" framespacing='1' frameborder='1' border='1'>
<frame frameborder='0' framespacing='0' src="/docs/mynav.htm" noresize
scrolling='no' name="frmnav"></frame>
<frame frameborder='0' framespacing='0' src="/docs/upload.asp"
name="frmmain"></frame>
</frameset>

Thanks!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top