Javascript code:
function doClick()
{
alert("clicked");
}
HTML code:
<div >
<table border="2" cellspacing="0" cellpadding="0" class="TextFG" style="font-family:Arial; font-size:10pt;">
<tr>
<td width="100%">
<table border="0" style="font-family:Arial; font-size:10pt;" cellspacing="0" cellpadding="3">
<tr>
<td> Find:</td>
<td nowrap>
<input type="text" id="Find_Text" name="Find_Text" size="7" > <input type="checkbox" name="Find_ExactMatch" value="1" checked>
</td>
<td colspan="2" style="cursor:default" nowrap >Exact Match</td>
</tr>
<tr>
<td> In:</td>
<td>
<select name="Find_DataFile">
<option value="1">Stage 1</option>
<option value="2">Stage 2</option>
</select>
</td>
<td align="center" valign="top">
<input type="submit" value="Go" onclick="doClick();"/>
</td>
<td align="center"><font class="DataFG">F2<font></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
Hi all,
Simple code like the above will not fire in Chrome (latest) but will under IE8 and IE10. Am I doing anything wrong ?.
Appreciate any help Thanks
After stepping thru each line in the code I supplied above (which also includes a server request to populate the dropdown named "Find_DataFile" whose code I was not able to supply) I have finally found the culprit that was causing an object not defined error (because it's id was not defined and I was calling getElementById to assign it to an temp object). All working now for IE8 IE10 Chrome and Safari. Thanks guys for all the time and effort to help me find a solution. It is much appreciated. I can breathe normally now lol !