aspx Tutorial

NET Articles,jQuery demo, with jQuery, online tutorial,Jquery, SilverLight, Javascript,,JSON, MVC,.NET Articles,demo, Web Services,
Advertise Here


Get our toolbar!


Posted by Aamir Hasan   on Tuesday, November 29, 2011 Total Views:  

In this example, you will see how to get iframe contents with jquery. When user click on button iframe body content will display on message box.

Here’s is an example

<html xmlns="">

<head runat="server">


    <script src="" type="text/javascript"></script>

    <script type="text/javascript">



                var htmlsr = $("#iframe1").contents().find("body").html();







    <form id="form1" runat="server">


        <input id="Button1" type="button" value="Click"/><br/>






Note: This example will not work on cross-domain.


Download (1.13 kb)

See live demo

Category: All | | HTML | jQuery
Protected by Copyscape Online Plagiarism Tool

Comments (3) -

lucas Peru
11/9/2012 6:06:24 PM #

hola una consulta como hago para que el resultado me muestro en un textbox en asp

Israel Riberdy
Israel Riberdy United States
9/20/2013 8:58:28 AM #

Hello! Someone in my Myspace group shared this website with us so I came to look it over. I'm definitely enjoying the information. I'm book-marking and will be tweeting this to my followers! Wonderful blog and terrific style and design.|

Lyndsey Sabatino
Lyndsey Sabatino United States
9/24/2013 3:01:32 PM #

Horrible site you've got at this juncture. The item hard to uncover high-quality entering like yours currently. I really increase in value singles like you

Add comment

  Country flag

  • Comment
  • Preview

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5