Circuitcode
New Member
- Messages
- 7
- Reaction score
- 0
- Points
- 0
I have been working on this code for another member. I programmed it in Firefox and it worked great but when I try to use it in IE it will not pop up the window. I know i am missing something and I am hoping someone can shed some light on the problem.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>
<script type="text/javascript">
function openWin(zip, radius) {
window.open("search.php?zip=" + zip + "&radius=" + radius, "Search Results", "width = 400px, height = 300px, scrollbars = yes");
return false;
}
</script>
<body>
<form id="form1" name="form1" method="post" action="" onsubmit="return openWin(document.form1.zip.value, document.form1.radius.value);">
Zip Code:
<label>
<input name="zip" type="text" id="zip" />
</label>
Radius:
<label>
<select name="radius" id="radius">
<option value="0">Please select</option>
<option value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="75">75</option>
<option value="100">100</option>
</select>
</label>
<label>
<input name="search" type="submit" id="search" value="Search" />
</label>
</form>
</body>
</html>