-
Frame Focus
My main page has two frame. How can I make it so everytime I click on frm_Right, it shifts the focus to a textbox in frm_Left?
Code:
<frameset cols="10%,*">
<frame src="Left.html" name="frm_Left" FRAMEBORDER="No">
<frame src="Right.html" name="frm_Right" FRAMEBORDER="No">
</frameset>
I tried this already.
<BODY OnFocus="parent.frm_Left.txtBox.select();">
Thanks
-
not sure if you can.
but if you could it should be like so
onFocus="parent.frm_Left.FORMNAME.INPUTNAME.focus();"
-
Had a feeling you will reply. I tried that already but it did not work. It worked on a Button.
-
did you try onClick instead?
-
Thanks Scoutt.
The code was fine. It was something else in my html file that messed the entire thing up. Do you know if it is possible to make a drop down drop the list and select a certain choice?
-
well my guess would be that you can't because the browser doesn't have that much control with a select. if you are talking that javascript drops it down and then selects the correct one.
-
No biggie if it does not work but you are the man Scoutt.
Thanks for your suggestions.
-