User avatar
torstein.honsi
Site Admin
Posts: 9210
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

How can I auto close an iframe?

Tue Apr 28, 2009 7:15 am

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>
Torstein Hønsi
CTO, Founder
Highsoft Solutions

Return to “Highslide FAQ”