Specifies the output device for the object
<script language="JavaScript"> function function1() { document.all.myLink.media = "print"; } </script> <a id="myLink" href="" onClick="return false" media="screen">Some link</a> <input type="button" id="myB" onClick="function1();" value='Change the output media to "print"'> </body> </html>