Wednesday, July 22, 2009

Iframes and jQuery - Working with an iframe's parent

Use iframe and Jquery to open another window in it self .This actually may be more desirable as it is simpler and works in more browsers (Firefox, Internet Explorer, Opera 8.54+ tested)

$( function() {
var p = parent;
$("a").click( function() {
p.$("#myinput").val("Anchor clicked: " + this.href);
return false;

No comments:

Post a Comment