usban
10-23-2002, 07:34 PM
What's wrong with this code?? it works perfectly in IE but the little image that acts as a link don't work in netscape 7.
<html>
<head>
<script>
function busca()
{
if(cadena.value!="")
parent.mainFrame.location = "general/buscar.php?cadena="+cadena.value;
else
return false;
}
</script>
<style type="text/css">
<!--
.icono {
cursor: hand;
}
-->
</style>
</head>
<body>
<table width="95%" border="0">
<tr>
<td><input name="cadena" type="text" size="10">
<img src="img/view.gif" class="icono" onClick="busca()">
</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<script>
function busca()
{
if(cadena.value!="")
parent.mainFrame.location = "general/buscar.php?cadena="+cadena.value;
else
return false;
}
</script>
<style type="text/css">
<!--
.icono {
cursor: hand;
}
-->
</style>
</head>
<body>
<table width="95%" border="0">
<tr>
<td><input name="cadena" type="text" size="10">
<img src="img/view.gif" class="icono" onClick="busca()">
</td>
</tr>
</table>
</body>
</html>