faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 19 people (32%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How can a pop up window be used within an IFRAME without getting an empty frame [object] error?

Apr 5th, 2008 19:32
ha mo, Colin Fraser, Douglas F.,


I am not sure it is possible to get this to work. 
However, try:
<iframe width="100%" height="100" src="blank.htm"></iframe>
<script language="JavaScript"><!--
document.frames[0].document.open();
document.frames[0].document.write("<script language=javascript>
function openwindow() 
{
window.open('index.htm')
}
</script>
);
document.frames[0].document.close();
//--></script>
No guarantees here!
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com