admin管理员组

文章数量:1336645

I am using Highslide popup. I want to close the popup on button Click. The button is inside the page. For opening hs.htmlExpand(this, { src: 'add_image.php', objectType: 'iframe' } ) used this function it is opening.

When Closing used this But it is not working.

Thanks in advance.

I am using Highslide popup. I want to close the popup on button Click. The button is inside the page. For opening hs.htmlExpand(this, { src: 'add_image.php', objectType: 'iframe' } ) used this function it is opening.

When Closing used this But it is not working.

Thanks in advance.

Share Improve this question asked Dec 30, 2009 at 12:37 PranjaliPranjali 472 silver badges8 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 6

use this:

<input id="Button1" type="button" value="Cancel" onclick="javascript:parent.window.hs.close();" />  

do this on body tag if you want to close it on clicking outside..

<body onClick="hs.close()">

本文标签: javascriptHighSlide CloseStack Overflow