Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Simple Java Script Code For Print Pages
soleimanian
post Feb 23 2005, 07:32 PM
Post #1


End Of Computer
Group Icon

Group: Members
Posts: 346
Joined: 1-September 04
From: .:: MARS ::.
Member No.: 28



A simple java script code for printing your website pages
just copy and paste below code on your pages
you can use image or text instead of button.

<html>

<head>
<title>Print screen button</title>
<script language="JavaScript">
<!-- hiding
function varitext(text){
text=document
print(text)
}
// End -->
</script>
</head>

<body>
<div align="center">
<form>
<input name="print" type="button" value="Print this Document!"
onclick="varitext()">
</form>
</div>
</body>
</html>

be successful !
Soleimanian
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Basic css code(2)
  2. Basic XML code(3)
  3. The bithday script!!(11)
  4. Let visitors email you!(7)
  5. CGI hackability. and the lack of use of JAVA ?(3)
  6. Code To Send An Email From A Form(6)
  7. Easy Email Script(1)
  8. Weather Feed Script In Php(0)
  9. Why Dont Pages Look The Same In Different Browsers(3)
  10. Interesting Ways Of Creating Web Pages(14)
  11. Jscript/html/css Code Help(8)
  12. Free Shoutbox? HTML, Flash or PHP Code(24)
  13. I Need Help With A Code: Myspace Profile Css(5)
  14. Help With Fading Out Web Pages(5)
  15. To Hide Your Source Code(13)
  1. A Nice Script!(5)
  2. Blogger Code Problems(1)
  3. Home Videos(4)
  4. Free Code Snippets And Css Layout(12)
  5. Cool Ajax! It's So Script.aculo.us!(1)
  6. Code Improvement And Optimization(2)
  7. About Ie Not Showing Pages That Work In Ff(10)
  8. Help With Java Applet(8)
  9. The Step Up. A Guide For Myspace Design(2)
  10. Free Login Script(1)


 



- Lo-Fi Version Time is now: 20th August 2008 - 10:41 AM