You must Sign In to post a response.
  • Category: JavaScript

    Print div and iframe

    hi all

    i am using iframe and div in dialogbox

    inside the div i have added a button and an image

    in iframe i am calling a aspx page

    how to print both the div and iframe on button click event
  • #761525
    Hello Rishe,

    Go through the below link. There is a solution for you :

    Hope this will solve your problem.

    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #761534

    The best way to print the iframe, div... by using client side scripting, there is a method called as


    you can open your iframe or div in new window and use the above lines of code in loading time, this is the best way to take print.

    Refer below sample link for your reference.

    Hope this will helpful to you..

    Give respect to your work, Instead of trying to impress your boss.

    Blog :

  • Sign In to post your comments