Regarding #2, there is an error in your code:
Code:
if ((typeof PopUpURL1 != "undefined") || (PopUpURL1.isClosed==true)){
PopUpURL1=dhtmlwindow.open("PopUpURL","inline","Message","Title","width=640,height=325,center=1,resize=1,scrolling=1")
}
else{
PopUpURL1.load("inline","Message","Title")
}
It's missing the quotations around "undefined". Anyhow, perhaps I'm misunderstanding what you're really trying to do. So in your logic, when do you really want to call PopUpURL1.load() instead of PopUpURL1.open()? I mean, if you have a DHTML window currently already open/visible on the page, and you're trying to update its contents to a new URL, you'd simply call load() via say a link, and not within the same logic code as open(), so something like:
Code:
<a href="#" onClick="PopUpURL1.load('iframe', 'http://cssdrive.com', 'CSS Drive'); return false">Load new site into window</a>
Bookmarks