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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -