Does anyone know how can I replace the passing variable in html with Javascript?
Example:
If I have a code as below:
<table width="150" border="0" cellspacing="0" cellpadding="2" id="productBox">
<tr>
<td valign="top" height="19" id="td4"><img onclick="addNewRowToTable('abc')" src="images/add0.gif" onmouseover="this.src=\'images/add1.gif\'" onmouseout="this.src=\'images/add0.gif\'" class="handCursor" width="49" height="19"></td>
</tr>
</table>
Any way that I can replace variable 'abc' to 'cde' with javascript?