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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Targeting a frame

Status
Not open for further replies.

BeanBob

Programmer
Nov 26, 2000
20
GB
Right, I have a link. I know how to target a particular frame, I know how to target a different window so that the link opens remotely as it were.

What I need to know is how to target this link to a frame which is in a remote window.

Any ideas?
 
If you (or your code) opened the window, then you named it. Refer to it by name.

I think that'll work, but I'm not sure -- you're right at the bleeding edge of my knowledge on frames "technology". [lol]

Cheers,


[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
onclick="windowname.framename.location='nepage.htm'"

<div onclick=&quot;...&quot;>click here</div>

sometime you just gotta say &quot;WHAT THE @#*% !!&quot;
 
The window I'm opening the link in, how do I know what it's called? I didn't open it from anywhere, it's just the main window.

Thanks
 
What I need to know is how to target this link to a frame which is in a remote window

I assume that means that your links are opening in a new window. new windows have a name of 'child' as default as well as any other name should you chose to name them. other than that to target a frame you just att targe=&quot;framename&quot; to your link <a> tag.

sometime you just gotta say &quot;WHAT THE @#*% !!&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top