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

How can I auto close an iframe?

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

Return to “Highslide FAQ”