Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > HTML / DHTML

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 09-05-2011, 01:12 AM   #1
wryfhk22
Registered User
 
Join Date: Mar 2011
Posts: 267
PDF load with out clicking

Hi, I wanted to know if anyone knows a way to make a PDF file open without being clicked on. I have a PDF file that I want put into a HTML file but I want it to load when the window is opened so that it has a navagation bar on the top so that the viewer can go back to my original site.
Thanks
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wryfhk22 is offline   Reply With Quote

Old 09-15-2011, 03:27 AM   #2
car rental cypr
Registered User
 
Join Date: Jul 2011
Posts: 18
<script type="text/javascript">
function openPdf()
{
var omyFrame = document.getElementById("myFrame");
omyFrame.style.display="block";
omyFrame.src = "yourfilelocation_or_filename.pdf";
}
</script>
<body onload="openPdf();">
<iframe id="myFrame" widht="800px" height="640px" style="border:1px solid Black;">
</iframe>
</body>

This should help me...
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
car rental cypr is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:32 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.