How to write in jquery “window.parent.document.getElementById().innerHTML”

For example we want get this

window.parent.document.getElementById("myEle").innerHTML = html;

In Jquery, we can write like this:

$("#myEle", window.parent.document).html(html);

or we can also write in this way:

parent.$("#myEle").html(html);
affiliate_link
Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

Comments are closed.