Monday, November 14, 2011

Dynamically create iframe with jQuery




Your Ad Here





This article explains and shows how to dynamically create an iframe in your HTML document’s DOM using jQuery and/or JavaScript. It also gives you an example code. This post is not extensive explanation of how to manage and work with iframes using jQuery. This post simply shows you how to dynamically create iframes using jQuery and JavaScript and serves as a note.
Creating iframe is similar to creating any DOM element. All you need to do is to use jQuery factory like this:
// Create an iframe element
$(‘<iframe />’);
// You can also create it with attributes set
$('





Your Ad Here

0 comments:

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More