I would need to be able to copy the whole page I am viewing with a simple button. I have found a way to work this out but unfortunately it does not include the values added to inputs. here is the fonction selecting everything in between my 2 html tags.
function getPageHTML() {
return "<html>" + $("html").html() + "</html>";
}
and then I just simply echo out a button calling the function
echo "<button class=\"Button\" onclick=\"console.log(getPageHTML());\">Print all html</button>";
this works fine but none of the values of inputs are there?
Thank you