问题描述
我对innerHTML有问题
i获取tr的innerHTML的值并修改文本
但是当我尝试将此文本放回innerHTML时它表示未知的运行时错误
即时尝试在onclick url中附加一些参数
[HTML]< table bgcolor =" #FFFFFF"宽度= QUOT; 150"边界=" 0" CELLPADDING = QUOT; 0" CELLSPACING = QUOT; 0">
< tr id =" xyz">
< td height =" 150"风格= QUOT;光标:指针; cursor:hand; onClick =" popup = window.open(''http://example.com/abc.html?xyz=aa&abc=ssdfd'',_blank'',''height=450,wid th = 500,滚动条= yes,resizable = yes,toolbar = yes,me nubar = yes,status = 1,location = yes'');这里返回false">一些代码
< / td>
< / tr>
< / table> [/ HTML ]
i have problem with innerHTML
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]
推荐答案
这篇关于innerHTML问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!