Tuesday, June 15, 2010

Print the webpage using the javascript

Saving Grace!

The good thing about the command, the way the authors set it up, is that it does not immediately fire a print. It actually only fires the print window, which still gives your site's visitors a choice in the matter!



And here's the code:

Click to Print This Page

The JavaScript is triggered by using the command "javascript:" in place of a URL, thus allowing a hypertext link to fire off the JavaScript.

And before you ask, yep, this will work with almost any JavaScript Event Handler as long as the format allows you to write it as a specific line or trigger a function.

You can set it to print off of an image:


And yes, you can set it to trigger off a button:






The Another way is...







Free Projects Download :

Free Projects Download :
Free students projects download for all.

Popular Posts( Last 7 Days )