Hello, I want to create print functionality of google map in my asp.net web application.
I use the following code for that,
- <script language="javascript">
- var contents = window.opener.document.getElementById("dvMap");
- document.write(contents.innerHTML);
- window.print();
- </script>
- <input type="button" value="Print" onclick="javascript:this.style.display='none';window.print();this.style.display='';" />
But while i am clicking on print button it will open print page but not show the map which i want to print,it show blank page.please refere following image.
https://ibb.co/bw1EvH
What is the solution?please suggest
Thanks.