Textbox has "focus"

D

Darin

I have an html page (warehouse.htm) that has 2 frames (header.aspx and
checkstock.aspx). When warehouse.htm opens, and the other 2 aspx pages
load, I want the cursor to be sitting on the first textbox (titem) in
checkstock.aspx.

How do I do that? I have tried setting the tabindex of titem to 0, but
it made no difference.

Thanks.

Darin
 
B

bruce barker

in client script, on pageload of the frameset, set window focus to
checkstock.aspx

<frameset rows="20,*" onload="window.frames[1].focus();">
<frame src="header.aspx">
<frame src="checkstock.aspx">
</frameset>
 

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

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top