Forum Moderators: open

Message Too Old, No Replies

capture screen using java script

print screen

         

suresh haiit

12:30 pm on Nov 26, 2004 (gmt 0)



hi all..

i want to perform print screen operation when i click on a button which is there on my webpage.

Some thing like i want to capture the screen from javascript.

Can i get the code for this........

Bernard Marx

2:49 pm on Nov 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In a word, No, not with a webpage with standard security priveleges.
(fairly tricky without too, I'd hazard to guess)

DrDoc

5:26 pm on Nov 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld! [WebmasterWorld.com]

No, there is no solution that would allow you to do a screen capture from within JavaScript. What you can do, however, is put a regular print button on your page... Simply use window.print() to print the current page.