Page 1 of 1

How can I auto close an iframe?

Posted: Tue Apr 28, 2009 7:15 am
by torstein.honsi
Put the code below in the page opened in the iframe popup.

Code: Select all

<script type='text/javascript'>
setTimeout(function () {
	try {
		parent.window.hs.getExpander().close();
	} catch (e) {}
}, 3000);      
</script>