Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138221

Print button in webview

$
0
0

I have web mobile application, at the button in aspx page i put the below code to print the page, it is working fine in browsers (all) but when i put my application inside webview in android it not working (not response after click)

<div id="options">

<input id="printpagebutton" type="button" class="printToprinter" value="PRINT" onclick="printpage()" />

</div>
<script>
function printpage() {

    //Get the print button and put it into a variable
    var printButton = document.getElementById("printpagebutton");


    //Set the button visibility to 'hidden' 
    printButton.style.visibility = 'hidden';


    //Print the page content
    window.print()

    //Restore button visibility
    printButton.style.visibility = 'visible';


}
</script>

Viewing all articles
Browse latest Browse all 138221

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>