View Single Post
Old 01-27-2011, 03:16 AM   PM User | #2
Gjslick
Regular Coder

 
Join Date: Feb 2009
Location: NJ, USA
Posts: 476
Thanks: 2
Thanked 70 Times in 69 Posts
Gjslick will become famous soon enough
Try giving the iframe an ID, and then you can tell it what to load. Ex:

Code:
<iframe id="myIframe"></iframe>
<a href="#" onclick="document.getElementById('myIframe').src='somepdf.pdf'; return false;">Load PDF</a>
-Greg
Gjslick is offline   Reply With Quote