Hi,
I updated your code check now
<form name="frmquicksearch" id="frmquicksearch" method="post" action="search.aspx">
<table border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="25">
<div align="right">
Search:</div>
</td>
<td width="110">
<div align="center">
<input type="text" class="fieldtext2" name="data" id="data">
</div>
</td>
<td width="25">
<div align="center">
<input type="button" name="Submit2" id="Submit2" value="Go" onclick="return Validate1()">
</div>
</td>
</tr>
</table>
</form>
And javascript is
function Validate1() {
if (document.getElementById("data").value == "") {
alert("Please Enter Search Keyword");
document.getElementById("data").focus();
return false
}
else
return false;
}
all browsers are not follow same rules some vendors follow some properties.
So,we've to maintain cross browser properties.
All the Best