<p>How to show pdf file in web page? ex: www.scribd.com</p>
Ouwgel
0
Newbie Poster
Recommended Answers
Jump to Post<p>How to show pdf file in web page? ex: www.scribd.com</p>
<iframe id="myFrame" style="display:none" width="500" height="300"></iframe> <input type="button" value="Open PDF" onclick = "openPdf()"/> <script type="text/javascript"> function openPdf() { var omyFrame = …
Jump to Postaaahh so simple... wy didnt i think of it..
bt then wat if user has disabled javascript on his browser...<iframe id="myFrame" style="display:none" width="500" height="300"></iframe> <input type="button" value="Open PDF" onclick = "openPdf()"/> <script type="text/javascript"> function openPdf() { var omyFrame = document.getElementById("myFrame"); omyFrame.style.display="block"; omyFrame.src = "test.pdf"; } </script>
Jump to Postaaahh so simple... wy didnt i think of it..
bt then wat if user has disabled javascript on his browser...To handle the users with javascript disabled , you can add something like this in your script -
<noscript> <input type="hidden" name="JavaScript" value="false" /> </noscript>
The parameter …
All 10 Replies
network18
15
Practically a Master Poster
venkat0904
1
Junior Poster
network18
15
Practically a Master Poster
venkat0904
1
Junior Poster
network18
15
Practically a Master Poster
venkat0904
1
Junior Poster
waleshoola
0
Unverified User
chrishea
182
Nearly a Posting Virtuoso
inzcpa
0
Newbie Poster
almostbob
866
Retired: passive income ROCKS
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.