Hi,
I am wondering if it is possible to pass the content of div as a request parameter to another page?
If I do this...
...and print out the content of request parameter "param" this is the result on print.jsp:
printDivContent
My intention was of course not to pass printDivContent as a String but instead the variable printDivContent?
Is that possible?
Best regards
Pichdude
I am wondering if it is possible to pass the content of div as a request parameter to another page?
If I do this...
Code:
var printDivContent = document.getElementById("testDiv").innerHTML;
<a href="#" onclick="window.open('print.jsp?param=printDivContent', 'Help', 'location=yes,resizable=yes,width=600,height=460,scrollbars');">Print</a>");
...and print out the content of request parameter "param" this is the result on print.jsp:
printDivContent
My intention was of course not to pass printDivContent as a String but instead the variable printDivContent?
Is that possible?
Best regards
Pichdude