View Full Version : Hyperlink Targeturl to open within the current frame - current frame name
ismailc
09-10-2008, 10:31 AM
Hi, I need help please.
I have a page with a stylesheet that is read from an aspx form.
On the form I have an hyperlink object - which iIwant the targeturl to open within the current frame where the hyperlink object is in.
I read that i need to set it in my target="frame name"
but i don't know what the current frame name is, is there a way i can have textbox using javascript showing me the name
of the current frame.
or any other idea on how i can open the hyperlink's Targeturl within the current frame.
Please Help...
Regards
jscheuer1
09-10-2008, 10:54 AM
If the link is on the page in the frame or iframe, it will open in that frame or iframe. No target is required.
ismailc
09-10-2008, 11:27 AM
Thank You for the assist:
I have an navigation bar & on selection the aspx form appears below with the hyperlink object & when i click it opens over the entire page & not below the navigation bar - i want it to be below the navigation bar. i can't see a frameset name.
The links opens on current page - is there a way i can define a frameset within & if so how? - so that i can set the target of the link to open below
Please help
ismailc
09-10-2008, 12:39 PM
Hi, is there a way of creating a frame within current page
and then set the hyperlink target to the frame id?
examples please!
jscheuer1
09-10-2008, 04:19 PM
I've moved this to the HTML forum for the time being because it seems to be about basic HTML.
To have a frame or iframe, it must be in the source code of the page. You can put it there using javascript, but it is much easier and usually much better to have it there already.
Regular frames are a little trickier because they require a special sort of top page called a frameset. Iframes can go anywhere on an ordinary page. Either a frame or an iframe may be given a name attribute in your HTML source code.
Once a frame or iframe has a name, ex (using iframe):
<iframe src="whatever.htm" name="myIframe" width="300" height="250"></iframe>
it can be targeted by a link:
<a href="another.htm" target="myIframe">Link Text</a>
See also - For framesets and regular frames:
http://www.w3schools.com/tags/tag_frameset.asp
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.