Search code examples
htmlbuttonprintscreen

How do I make this HTML Print Screen code a simple button instead of text?


<a title="Print Screen" alt="Print Screen" onclick="window.print();"    target="_blank" style="cursor:pointer;">CLICK HERE TO PRINT FORM!</a>

Solution

  • use the button tag :

    <button onclick="window.print();">CLICK HERE TO PRINT FORM!</button>