Creating a framed page

Discussion in 'HTML & Website Design' started by Jon12345, Feb 15, 2006.

  1. #1
    I have a template where on one of the pages, in the body section, I want to have the content displayed from a different site. I thought I could use a frame or something.

    How do I do that? Is there a special bit of code I put in the body section to say it is a frame? I've never done one before!

    Thanks,

    Jon
     
    Jon12345, Feb 15, 2006 IP
  2. johneva

    johneva Well-Known Member

    Messages:
    1,480
    Likes Received:
    46
    Best Answers:
    1
    Trophy Points:
    170
    #2
    Do you mean an iframe?

    <iframe src ="/pagename.asp" width="75%" marginwidth="10" scrolling="yes"></iframe>
     
    johneva, Feb 15, 2006 IP
  3. Jon12345

    Jon12345 Peon

    Messages:
    599
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, that worked great, thank you!
     
    Jon12345, Feb 15, 2006 IP
  4. johneva

    johneva Well-Known Member

    Messages:
    1,480
    Likes Received:
    46
    Best Answers:
    1
    Trophy Points:
    170
    #4
    My plesure. :)
     
    johneva, Feb 15, 2006 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    A more user-friendly and future proof approach is to use the <object> tag.
    
    <object type="text/html" data="http://someplace.com/some.html">
      <p>You may see this page at <a href=http://someplace.com/some.html> 
         someplace</a>
      </p>
    </object>
    Code (markup):
    As you can see, should the user's UA not support <object>, they will see a link to the page.

    cheers,

    gary
     
    kk5st, Feb 15, 2006 IP