Pass value from iframe to parent
Posted on: May 24, 2009 at 12:00 AM
Posted on: May 24, 2009 at 12:00 AM
Pass value from iframe to parent
iframe creates an inline frame in which we can put another page. We can pass values from iframe to the parent page with the use of java script.Here in our example of passing value from iframe to the parent we have created a HTML page which has one input text box and a "Submit" button which will call the hello() method of parent page on click. In parent page we have an input text component and an iframe which is containing theinputForm.html page.
Here is the code of main parent page PassValueIFrame.html as follows:
PassValueIFrame.html
Name: |
After filling name and clicking on the "Submit" button the inserted value in the iframe page would be reflected to the parent page.
Download Source Code
No comments:
Post a Comment