Connecting Tech Pros Worldwide Help | Site Map

javascript to print embed pdf

 
LinkBack Thread Tools Search this Thread
  #1  
Old May 15th, 2007, 09:25 AM
l.achenza@gmail.com
Guest
 
Posts: n/a
Default javascript to print embed pdf

Hallo,
I have this code that works fine in IE but not in Firefox (2.0)
Can you help me please?
Thank you

<html>
<head>
<script>
function printDocument() {
var x = document.getElementById("myDoc");
x.print();
}

</script>

</head>
<body>
<embed id="myDoc" src ="myDoc.pdf" width="550" height="550"
name="blabla">
<button onclick="printDocument()">Stampa</button>
</body>
</html>


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.