Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to add print button on my website

<input type="button" value="Print this page" onClick="window.print()">

Or

<button type="button" class="print" onClick="window.print()">Print</button>
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to add keyboard shortcuts javascript 
Javascript :: react native loading 
Javascript :: npm install the exact package version specified in package.json 
Javascript :: javascript Count the occurrences of a value in an array 
Javascript :: jquerygrid disable sorting 
Javascript :: two button in one row react native 
Javascript :: javascript make beep sound 
Javascript :: javascript week day name 
Javascript :: js time difference in minutes 
Javascript :: react copy to clipboard 
Javascript :: convert binary to decimal javascript 
Javascript :: moment locale 
Javascript :: javascript detect square number 
Javascript :: split by whitespace javascript 
Javascript :: google maps infowindow on hover 
Javascript :: jquery minified cdn 
Javascript :: vuejs form prevent default event 
Javascript :: how to output only a certain length of a string in javascript 
Javascript :: how to get the extension from filename using javascript 
Javascript :: javascript iterate object key values 
Javascript :: js fullscreen 
Javascript :: array to string js 
Javascript :: binary to ascii javascript 
Javascript :: select element in js 
Javascript :: play iframe video onclick a link javascript 
Javascript :: momentjs date and time string add minutes 
Javascript :: cypress find aria-label 
Javascript :: #react native shadow 
Javascript :: nextjs build failed optimization killed 
Javascript :: react start dev server and join with mobile device 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =