I am writing an electronic card system for my company. Everything is going great but now I have one problem between IE and Firefox. When you view the card that was sent to you there is a Close Window button at the bottom. This button works in IE but not in Firefox. I can't figure out why. Here is the code from each browser. Any help is greatly appreciated.
FIREFOX
========
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Exemplar CE eCards</title>
<link rel="stylesheet" href="eCardsStyleSheet.css
" type="text/css" title="hires"/>
</head>
<body >
<p align="center">
<object classid="clsid:D27CDB6E-AE
6D-11cf-96
B8-4445535
40000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="400">
<param name="movie" value="Cards/exemplar_than
kyou.swf">
<param name="quality" value="high">
<embed src="Cards/exemplar_thanky
ou.swf" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer" type="application/x-shockw
ave-flash"
width="600" height="400"></embed>
</object>
</p>
<p align="center">
<textarea name="textarea" cols="70" rows="6">Another Test</textarea>
</p>
<p align="center" class="error"> </p>
<p align="center">
<input name="Close" type="submit" id="Close" value="Close Window" onclick="javascript:window
.close();"
>
</p>
</body>
</html>
IE 7.0
======
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Exemplar CE eCards</title>
<link rel="stylesheet" href="eCardsStyleSheet.css
" type="text/css" title="hires"/>
</head>
<body >
<p align="center">
<object classid="clsid:D27CDB6E-AE
6D-11cf-96
B8-4445535
40000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="400">
<param name="movie" value="Cards/exemplar_than
kyou.swf">
<param name="quality" value="high">
<embed src="Cards/exemplar_thanky
ou.swf" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer" type="application/x-shockw
ave-flash"
width="600" height="400"></embed>
</object>
</p>
<p align="center">
<textarea name="textarea" cols="70" rows="6">Another Test</textarea>
</p>
<p align="center" class="error"> </p>
<p align="center">
<input name="Close" type="submit" id="Close" value="Close Window" onclick="javascript:window
.close();"
>
</p>
</body>
</html>
Start Free Trial