This works find in FF and Chrome (PC), but not in IE (I have 7 installed)...IE gives its usual descriptive error: "Uknown Runtime error" on the line highlighted in red...
Will it simply not work this way, do I have to use the DOM as outlined on this link (as an example):
--------
GOOGLE is a great resource to find answers to questions like "how do i..."
If you don't know exaclty what you want to do or what to search on, try Google Suggest: --------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc
Will it simply not work this way, do I have to use the DOM as outlined on this link (as an example):
Code:
<script language="javascript">
function addRowToTable() {
var currentRows = document.getElementById("myTable").innerHTML;
var newRow = "";
newRow = "<tr><td>new col 1</td><td>new col 2</td></tr>";
[COLOR=red]document.getElementById("myTable").innerHTML = currentRows + newRow;[/color]
}
</script>
<a href="javascript:addRowToTable()">click</a>
<table id="myTable">
<tr>
<td>orig col 1</td>
<td>orig col 2</td>
</tr>
</table>
--------
GOOGLE is a great resource to find answers to questions like "how do i..."
If you don't know exaclty what you want to do or what to search on, try Google Suggest: --------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc