Results 1 to 5 of 5

Thread: Hyperlink Targeturl to open within the current frame - current frame name

  1. #1
    Join Date
    Dec 2007
    Posts
    88
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Hyperlink Targeturl to open within the current frame - current frame name

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If the link is on the page in the frame or iframe, it will open in that frame or iframe. No target is required.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2007
    Posts
    88
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Thank you for the assist

    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

  4. #4
    Join Date
    Dec 2007
    Posts
    88
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Creating a frame within currrent page

    Hi, is there a way of creating a frame within current page
    and then set the hyperlink target to the frame id?

    examples please!

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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):

    HTML Code:
    <iframe src="whatever.htm" name="myIframe" width="300" height="250"></iframe>
    it can be targeted by a link:

    HTML Code:
    <a href="another.htm" target="myIframe">Link Text</a>
    See also - For framesets and regular frames:

    http://www.w3schools.com/tags/tag_frameset.asp
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •