open a file in a new window

X

Xerxes

Hi,
can you please tell me how I can set up a script that would open a pdf
file when a button is clicked?
Can I add a "Close" and "Print" buttons to the file being displayed?

Thanks.
 
G

Grant Wagner

Xerxes said:
Hi,
can you please tell me how I can set up a script that would open a pdf
file when a button is clicked?
Can I add a "Close" and "Print" buttons to the file being displayed?

Thanks.

<a href="yourfile.pdf" target="_blank">Click here to open the PDF in a new
window</a>

--
| Grant Wagner <[email protected]>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-developer/upgrade_2.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top