internet explorer - Setting background of IE (createPopup) popup to transparent -


i'm creating popup window using ie's proprietary window.createpopup function, , although popup appears fine , shows content assign it, can't figure out how background transparent.

does know how it? i've googled , seen should apparently setting body's .style.backgroundcolor "transparent", doesn't work. here's i'm testing currently, , popup appears white box of 300x100 , none of yellow background can seen (the popup opaque).

<!doctype html> <html> <body bgcolor="yellow"> <script> var str = '<h1>hello world</h1>'; var popupobj = window.createpopup(); if(popupobj) {     popupobj.document.body.style.border = "1px purple solid";     popupobj.document.body.style.backgroundcolor = "transparent";     popupobj.document.body.innerhtml = str;     popupobj.show(10,20,300,100,document.body); } </script> </body> </html> 

i know it's not cross-browser compatible, doesn't have be, it's activex based project. i'm testing in ie9 i've tried in ie9's "ie8 mode" , it's "ie7 mode" also. same result.


Comments