Hi all,
This method of calling the function works fine in IE but for some reason FireFox fails to call the function. Please if anyone can help I would appreciate it.
This is a basic example of what I am trying to achieve.
—- code below —-
[CODE]
<!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>Browser Compatability – Javascript call</title>
<SCRIPT language=JavaScript>
function createBanner() {
alert(“This is a Banner”);
var logoContent = “<img height=100 src=’http://www.bmw.com.au/common_content/bmw/carsales/header_banner.jpg’ width=100>”;
document.write(logoContent);
document.close();
}
function createLogo() {
alert(“This is a Logo”);
var logoContent = “<img height=90 src=’http://www.bmw.com.au/common_content/bmw/carsales/logo_bmw_group_australia.gif’ width=183>”;
document.write(logoContent);
document.close();
}
</SCRIPT>
</head>
<body>
<SCRIPT language=JavaScript> createBanner(); </SCRIPT>
<SCRIPT language=JavaScript> createLogo();</SCRIPT>
</body>
</html>
Thanks