# Problem with js code

**URL:** <https://forum.kirupa.com/t/problem-with-js-code/190867>\
**Category:** Uncategorized\
**Created:** [June 15, 2006, 7:15am UTC](https://forum.kirupa.com/t/problem-with-js-code/190867 "2006-06-15T07:15:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fried](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@fried](https://forum.kirupa.com/u/fried)\
**Post date:** [June 15, 2006, 7:15am UTC](https://forum.kirupa.com/t/problem-with-js-code/190867/1 "2006-06-15T07:15:24Z")

</div>

This is the first time I have tried to use the new window code in flash 8.

```auto
on (release) {
getURL ("javascript:fixedSize('pic1.htm','','width=660,height=500,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No')");
}

```

Code for HTML Page:

```auto
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>PIc1</title>
	</head>
	<body>
	<script language="JavaScript" type="text/javascript">
<!--

window.focus();

function init()
{}
//-->

function closewindow()
{
	window.name = "popup.asp";
	window.close();
	return false;
	
}
</script>
		<table border=0 id="table1" height="20" width=50% align=center>
		
			<tr>
				
				<td colspan=50% align=center>
				<a href = "" onclick ="return closewindow()"><b><font size="2" face="arial"> Close</font></b> </a>
				</td>
			
			
			</tr>
			</table>
			<table border=0 id="Table2" height="20" width=50% align=center>
			<tr>
				<td align=center>
					<img src="Gallery/1.jpg">
				</td>
			</tr>
		</table>
	</body>
</html>

```

The problem is it does not seem to work… The paths are right and everything, but It just does not seem to open up a new window… What Am I doing wrong?
