Regarding maximizing a DHTML window via a link, assuming you have the below window instance that opens automatically:
Code:
<script type="text/javascript">
var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://www.google.com", "#1: Google Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1", "recal")
</script>
A generic function that maximizes the above may look like this:
Code:
function maximizewin(winvar){
winvar.moveTo(dhtmlwindow.scroll_left, dhtmlwindow.scroll_top)
winvar.setSize(dhtmlwindow.docwidth-10, dhtmlwindow.docheight)
}
For example:
Code:
<a href="javascript:maximizewin(googlewin)">Maximize DHTML window</a>
In other words, the key is to call dhtmlwindow.moveTo() and dhtmlwindow.setSize().
Bookmarks