michshelly
01-25-2006, 01:18 PM
Hello,
Can someone please tell me what is wrong with this code? I want it to open in a new window. Here it is:
<script type="text/javascript">
<!-- HIDE FROM INCOMPATIBLE BROWSERS
function showAnimals(linkTarget) {
animalWindow = window.open(linkTarget, "animalInfo",
"toolbar=no, menubar=no, location=no, scrollbars=yes, resizable=no,
width=400, height=325",);
}
// STOP HIDING FROM INCOMPATIBLE BROWSERS -->
</script>
</head>
<body>
<p>
<a href="koala.html" onmouseover="self.status='Click here to visit the Koala.'; return true"
onclick="showAnimals('koala.html'); return false">Koala</a><br />
<a href="manatee.html" onmouseover="self.status='Click here to visit the Manatee.'; return true"
onclick="showAnimals('manatee.html'); return false">Manatee</a></p>
</body>
</html>
Thanksyou!
Can someone please tell me what is wrong with this code? I want it to open in a new window. Here it is:
<script type="text/javascript">
<!-- HIDE FROM INCOMPATIBLE BROWSERS
function showAnimals(linkTarget) {
animalWindow = window.open(linkTarget, "animalInfo",
"toolbar=no, menubar=no, location=no, scrollbars=yes, resizable=no,
width=400, height=325",);
}
// STOP HIDING FROM INCOMPATIBLE BROWSERS -->
</script>
</head>
<body>
<p>
<a href="koala.html" onmouseover="self.status='Click here to visit the Koala.'; return true"
onclick="showAnimals('koala.html'); return false">Koala</a><br />
<a href="manatee.html" onmouseover="self.status='Click here to visit the Manatee.'; return true"
onclick="showAnimals('manatee.html'); return false">Manatee</a></p>
</body>
</html>
Thanksyou!