+ 3

how to add print option in javascript

7th Aug 2016, 6:33 AM
WAQAR AHMAD
WAQAR AHMAD - avatar
5 odpowiedzi
0
easy
7th Aug 2016, 8:13 AM
Владимир
Владимир - avatar
0
window.print();
7th Aug 2016, 9:24 AM
WAQAR AHMAD
WAQAR AHMAD - avatar
0
and taking no parameter. .
7th Aug 2016, 9:25 AM
WAQAR AHMAD
WAQAR AHMAD - avatar
0
document.write("your text");
7th Aug 2016, 1:04 PM
Mohammed Faazil
Mohammed Faazil - avatar
0
make a function like so... function print (content){ document.write (content); } put this function in your code outside any other functions and then all you have to type is... print ("whatever you need printed!"); or print ("I'm writing to an output!");
14th Aug 2016, 9:31 AM
Cocoa
Cocoa - avatar