Changing the inner html of an object (i.e. an iframe)

Changing the inner html of an object (i.e. an iframe)

I'm using the modern equivalent of an iframe...

  1. <object data="page.html" type="text/html" id="myiframe"></object>
and i want to change the the iframe's contents. In the past, with real iframes, i'd have...
  1. <iframe src ="page.html" id="myiframe"></iframe>
and the jQuery to change its contents...
  1. $('body', $('#myiframe').contents()).html(myNewHtml);
...which worked perfectly. Not so with this new object type of iframe. Anybody know how the hell to do it??