아무도 내가 알고있는 자바에서 html로 전달 변수를 대체 할 수 있습니까?javascript로 함수 변수를 대체 할 수있는 방법은 없나요?
예 :
나는 아래와 같은 코드가있는 경우 : 나는 자바 스크립트와 'CDE'에 변수 'ABC'를 대체 할 수
<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>
어떤 방법을?
왜 함수에 cde를 전달하지 않습니까? – rahul