Specifies the output device for the object : Hyper Link : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Hyper Link »

 

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>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo HTML
» Hyper Link