+ 3
how to add print option in javascript
5 Respostas
0
easy
0
window.print();
0
and taking no parameter.
.
0
document.write("your text");
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!");