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 (1) -

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

Add comment

  Country flag

  • Comment
  • Preview

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5