Page 1 of 2 12 Last
  • Jump to page:
    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    16
    Rep Power
    0

    Question make target frame on different page?


    Hi everyone,

    How would I go about making the target frame of a link on a different page.

    Thanks.
  2. #2
  3. <!--REMOTE_ADDR-->
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Location
    Cali4nia
    Posts
    162
    Rep Power
    16
    <A href="url" TARGET="_blank"> SOME TEXT </A>

    This will always open the link in a new window.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    16
    Rep Power
    0
    Alright, so that'll open it in a new window. But what do I do if I want it to load in a specific frame in an existing page. For example if my link was located in characters.htm and I wanted the target frame to be "T1" located in frank.htm

    Thanks a lot.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Ward, arkansas
    Posts
    105
    Rep Power
    15
    Name the window you want to open the links in.... then put <a href="url" targer="name of other window"> yada yada</a> and itll open in that window.

    dan
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    16
    Rep Power
    0
    i don't want the link to open in a window... i want it to open in a frame. maybe i just don't know what you mean. if anyone else thinks this what i should do, how do i name the window?

    thanks for you help
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    memphis, tn
    Posts
    12
    Rep Power
    0
    TARGET="windowName.frameName"

    or

    TARGET="opener.frameName" if it opened the current window.

  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    16
    Rep Power
    0
    how can I find the window name?
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Ward, arkansas
    Posts
    105
    Rep Power
    15
    when you creates your framsets you should have named the frames

    <frameset>
    <frame src="url" name=something>
    <frame src="url" name=somethingelse>
    </frameset>

    ----------------------
    difrent document:

    <a href="url" target=something>opens in the something frame</a>
  16. #9
  17. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    16
    Rep Power
    0
    my Iframe (maybe i should've mentioned that) is named "T1" and is located in characters.htm so:

    <HREF="bios/frank.htm" A TARGET="characters.T1">

    but that just opens the link in a new window... hmmm....
    Last edited by vanillacoke; August 5th, 2003 at 05:20 PM.
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Ward, arkansas
    Posts
    105
    Rep Power
    15
    <a href="url" target="T1">
  20. #11
  21. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    16
    Rep Power
    0
    yeah, i tried that but it just opens in a new window.
  22. #12
  23. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Ward, arkansas
    Posts
    105
    Rep Power
    15
    hmm,

    check make sure you named it exactly that, some browsers are cases sensitive.
  24. #13
  25. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Netherlands
    Posts
    26
    Rep Power
    0
    you can use javascript if you want.


    make sure the iFrame has an ID (with the name T1)

    <A HREF=url onclick=jsfunction(url); return false;>

    jsfunction(sUrl){
    var myFrame = document.getElementById('T1');
    myFrame.src = sUrl;
    }
  26. #14
  27. <!--REMOTE_ADDR-->
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Location
    Cali4nia
    Posts
    162
    Rep Power
    16
    Chkout these Examples

    -------------------- Frames.html -----------------------

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>Frame Example</TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    </HEAD>

    <FRAMESET ROWS="20%,80%">
    <FRAME SRC="header.html" NAME="header" NORESIZE>

    <FRAMESET COLS="20%,80%">
    <FRAME SRC="homeworklist.html" NAME="menu">
    <FRAME SRC="index.html" NAME="index">
    </FRAMESET>
    </FRAMESET>

    </HTML>

    -------------------------------homeworklist.html----------------
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>Frame Example</TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    </HEAD>
    <BODY>
    <center>
    <a href="homework-1/problem1.html" target='index'>hw1-1</a>
    <br><br><br>
    <a href="homework-1/problem2.html" target='index'>hw1-2</a>
    <br><br><br>
    <a href="homework-1/problem3.html" target='index'>hw1-3</a>
    <br><br><br>
    <a href="homework-1/problem4.html" target='index'>hw1-4</a>
    <br><br><br>
    <a href="homework-1/problem5.html" target='index'>hw1-5</a>
    <br><br><br>
    </center>
    </BODY>
    </HTML>

    ------------------------------------------------------------

    make a header.html and the homework files and I guess this is what u want..... hope am right!
  28. #15
  29. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    16
    Rep Power
    0
    Alright, thanks for everyone's help. I'll try those last few.
Page 1 of 2 12 Last
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo