i get the value of innerHTML of tr and modify the text
but when i try to put this text back in innerHTML it says unknown runtime error
im trying to append some paramaeter in the onclick url
[HTML]<table bgcolor= "#FFFFFF" width="150" border="0" cellpadding="0" cellspacing="0">
<tr id="xyz">
<td height="150" style="cursor:pointer; cursor: hand;" onClick="popup = window.open ('http://example.com/abc.html?xyz=aa&abc=ssdfd',_blank','height=450,wid th=500,scrollbars=yes,resizable=yes,toolbar=yes,me nubar=yes,status=1,location=yes'); return false">some code here
</td>
</tr>
</table>[/HTML]
Expand|Select|Wrap|Line Numbers
- window.onload=function(){
- var y=document.getElementById("xyz").innerHTML;
- var temp=y.substring(y.indexOf("window.open('")+13);
- y=y.substring(0,y.indexOf("window.open('")+13);
- y=y+temp.substring(0,temp.indexOf("'"))+"&xyzuser="+x+temp.substring(temp.indexOf("'"));
- document.getElementById("xyz").innerHTML=y;
- };