# HTML - Click to close

**URL:** <https://forum.kirupa.com/t/html-click-to-close/48519>\
**Category:** web dev\
**Created:** [April 14, 2004, 11:37am UTC](https://forum.kirupa.com/t/html-click-to-close/48519 "2004-04-14T11:37:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![El\_Thierro](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@El\_Thierro](https://forum.kirupa.com/u/El_Thierro)\
**Post date:** [April 14, 2004, 11:37am UTC](https://forum.kirupa.com/t/html-click-to-close/48519/1 "2004-04-14T11:37:01Z")

</div>

Hi,

Is there any way to add some html code which will close a pop-up window with a picture in it?

This is the code of a page I have which is popped up trough flash:

```auto
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Winter Picture 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body background="../../temp/pattern.gif">
<center><img src="../../../Digital/22.)Sneeuw-Tuin/Web/IMG_1.jpg" width="800" height="600"></center> 
</body>
</html>

```

Is there any way to add some code to this, so when you click the image for instance, the window closes again?

Thanks and cheers
