jquery-tutorialsmade

Load web pages in an iframe using jQuery

This tutorial shows you how to dynamically load webpages in an iFrame using jQuery. Basically loading pages in an iframe using AJAX.

Its simple, use ‘attr()’ function to load pages. Here is an example show below:

Its is always better if you have an example to learn how it is working. So, here it is:

Basically two buttons are used in this example, button and button2 are the id’s respectively. OnClick of button will load the webpage “blog.theonlytutorials.com” and button2 will load the web page “www.royaltalkies.com” in the IFRAME.


Load web pages in an iframe using jQuery DEMO:

demo

 

 

Related Posts

Leave a Reply