tlavalle
08-06-2003, 09:31 AM
I need some help here I have been trying to use a js button to load a pdf but for some reason I just don't have it right can someone help here.
here is the code i am using:
<html>
<head>
<title>monthly specials</title>
</head>
<body>
<div align="center">
<script language="JavaScript">
function goToUrl(){
window.location = "http://Template/documents/salesflier.pdf"; }
</script>
</div>
<p align="center"><font size="4" face="Arial, Helvetica, sans-serif"> To View
the online specials click on the link below </font></p>
<p align="center"><font size="4" face="Arial, Helvetica, sans-serif">You do need
Adobe Acrobat Reader </font></p>
<p align="center">If you need Adobe Reader you may download it here for free from
<a href="http://www.adobe.com/products/acrobat/readstep2.html">Adobe</a>.</p>
<form action="/Template/documents/salesflier.pdf">
<div align="center">
<input name="button" type="button" onClick="goToUrl()" value="Sales Flier">
</div>
</form>
</div>
</body>
</html>
I just need a little help trying to figure out how to get a js button to load the pdf.:D
here is the code i am using:
<html>
<head>
<title>monthly specials</title>
</head>
<body>
<div align="center">
<script language="JavaScript">
function goToUrl(){
window.location = "http://Template/documents/salesflier.pdf"; }
</script>
</div>
<p align="center"><font size="4" face="Arial, Helvetica, sans-serif"> To View
the online specials click on the link below </font></p>
<p align="center"><font size="4" face="Arial, Helvetica, sans-serif">You do need
Adobe Acrobat Reader </font></p>
<p align="center">If you need Adobe Reader you may download it here for free from
<a href="http://www.adobe.com/products/acrobat/readstep2.html">Adobe</a>.</p>
<form action="/Template/documents/salesflier.pdf">
<div align="center">
<input name="button" type="button" onClick="goToUrl()" value="Sales Flier">
</div>
</form>
</div>
</body>
</html>
I just need a little help trying to figure out how to get a js button to load the pdf.:D