javascript - controlling iframe margin and source from js (js inside iframe) -
i have iframe. want change src , margins of iframe javascript included in document open in iframe.
i have tried following no use -
document.popiframe.document.body.innerhtml="blah"; document.getelementbyid( 'popiframe' ).setattribute( 'src', '' ); $('.popiframe').attr('src', "about:blank");
how can this?
an iframe window in window, change page displayed there (= not src attribute) change in other window :
window.location.href = "http://www.google.com";
changing margin around iframe isn't possible see it...
Comments
Post a Comment