Hi All,
If I have 2 frames, one that has an application and another that has an HTML page, can I do something similar to this (if the second frame is called display)?
===================================
upper_object = window.parent.frames['display'];
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
upper_object.document.body.insertAdjacentHTML('beforeend', WebBrowser);
upper_object.document.WebBrowser1.ExecWB(6,-1);
upper_object.document.WebBrowser1.outerHTML = "";
===================================
The reason why I say similar is because it doesnt seem to work this way. I'm only concerned on getting this to work on IE and not NS if that helps out. Basically when I run this javascript function within the first frame it prints the first frame. I'm looking to only print the second frame. Can someone please help?!?! I'd appreciate help of any form.
Rob
If I have 2 frames, one that has an application and another that has an HTML page, can I do something similar to this (if the second frame is called display)?
===================================
upper_object = window.parent.frames['display'];
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
upper_object.document.body.insertAdjacentHTML('beforeend', WebBrowser);
upper_object.document.WebBrowser1.ExecWB(6,-1);
upper_object.document.WebBrowser1.outerHTML = "";
===================================
The reason why I say similar is because it doesnt seem to work this way. I'm only concerned on getting this to work on IE and not NS if that helps out. Basically when I run this javascript function within the first frame it prints the first frame. I'm looking to only print the second frame. Can someone please help?!?! I'd appreciate help of any form.
Rob