Wednesday, August 4, 2010

Suppose you have an iFrame

Code below will find your iFrame and insert the text specified into the body of the document




$(document).ready(function(){
$('#frameID').load(function(){
$('#frameID').contents().find('body').html('My new contents');
});
});

No comments:

Post a Comment