Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting focus to iframe

Status
Not open for further replies.

halfbarrel

Programmer
Jun 12, 2002
44
US
Hello,
I'm currently creating a web page with a table of data at the top, and iframe below that, and then a second iframe below that. When a hyper link from the table is clicked it changes the source of the first iframe, then when a hyper link is clicked from that iframe it sets the source for the second iframe.

My problem is after the source for the first iframe is filled you need to scroll to get to second iframe. So when a link from the first iframe is clicked to fill the source for the second iframe you really can't tell anything happened unless you scroll down.

My question is when setting the source for the second iframe is there a way to go to that iframe like setting the focus or something.
 
Thanks for the help guys. One more question. If the source for the second iframe is set and a value is clicked in the table at the top I would like to set the source for the second iframe to nothing and shrink it back down to make it invisible. I can set the source to nothing but when I try to make the height and width 0 I can still see a white area on the page. Let me know if you can offer any help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top