You are on page 1of 1

12/28/13

Tryit Editor v1.8

Source Code:
< ! D O C T Y P Eh t m l > < h t m l > < b o d y >

Submit Code

Result:

W3Schools.com - Try it yourself

Click the button to print the current page.


Print this page

< p > C l i c kt h eb u t t o nt op r i n tt h ec u r r e n tp a g e . < / p > < b u t t o no n c l i c k = " m y F u n c t i o n ( ) " > P r i n tt h i sp a g e < / b u t t o n > < s c r i p t > f u n c t i o nm y F u n c t i o n ( ) { w i n d o w . p r i n t ( ) ; } < / s c r i p t > < / b o d y > < / h t m l >

Edit the code above and click "Submit Code" to see the result.

www.w3schools.com/jsref/tryit.asp?filename=tryjsref_print

1/1

You might also like