www.webdeveloper.com
Results 1 to 2 of 2

Thread: Need help with Iframe

  1. #1
    Join Date
    Mar 2013
    Posts
    2

    Need help with Iframe

    Hi all,
    I need suggestions with iframe. I have two pages page1 and page 2. Page1 has a link and page two has iframe. I am trying to open a pdf file in iframe when clicking link on page1. Any suggestions on how to do it?

    Thanks

  2. #2
    Join Date
    Jun 2011
    Posts
    3
    This should work...

    Page 1:

    Code:
    <a href="URL TO PAGE 2">PAGE 2</a>
    Page 2:
    Code:
    <iframe height="SET HEIGHT" width="SET WIDTH" src="PATH TO YOUR PDF DOCUMENT"></iframe>
    Not sure what else is on, or going to be on, Page 1 but include link to your Page 2.
    On Page 2 set your path to your pdf in the src then set your height and width as you want them. There are other iframe attributes you can set: http://www.w3schools.com/tags/tag_iframe.asp
    when Page 2 opens the pdf should be displayed if the path is correct.

    Hope this helps.

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles