# Dreamweaver CS4 close button snippet

**URL:** <https://forum.kirupa.com/t/dreamweaver-cs4-close-button-snippet/281759>\
**Category:** web dev\
**Created:** [February 12, 2009, 11:27pm UTC](https://forum.kirupa.com/t/dreamweaver-cs4-close-button-snippet/281759 "2009-02-12T23:27:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashjones](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@flashjones](https://forum.kirupa.com/u/flashjones)\
**Post date:** [February 12, 2009, 11:27pm UTC](https://forum.kirupa.com/t/dreamweaver-cs4-close-button-snippet/281759/1 "2009-02-12T23:27:21Z")

</div>

I am new to the close window snippet and was wondering if anyone could tell me why my window isn’t closing? It is the snippet from CS4, the close window button is showing up. It just isn’t closing the window. Any thoughts?

\<input name=“Button” type=“button” onClick=“javascript:self.close(); onKeyPress=” value=“Close Window"javascript:self.close();”\>\<br\>  
\<br\>  
\</td\>  
\<td\>&nbsp;\</td\>  
\</tr\>  
\</table\>\</td\>  
\<td width=“11” height=“200”\>  
\<img src=“images/spacer.gif” width=“11” height=“200” alt=""\>\</td\>  
\</tr\>  
\<tr\>  
\<td width=“11” height=“12”\>  
\<img src=“images/spacer.gif” width=“11” height=“12” alt=""\>\</td\>  
\<td width=“584” height=“12”\>\<img src=“images/index\_11.jpg” width=“584” height=“12” alt=""\>\</td\>  
\<td width=“11” height=“12”\>  
\<img src=“images/spacer.gif” width=“11” height=“12” alt=""\>\</td\>  
\</tr\>  
\<tr\>  
\<td width=“11” height=“16”\>  
\<img src=“images/spacer.gif” width=“11” height=“16” alt=""\>\</td\>  
\<td width=“584” height=“16”\>  
\<img src=“images/spacer.gif” width=“584” height=“16” alt=""\>\</td\>  
\<td\>  
\<img src=“images/index2\_15.jpg” width=“11” height=“16” alt=""\>\</td\>  
\</tr\>
