本文介绍了innerHTML问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对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]

展开 | 选择 | Wrap | 行号

推荐答案




这篇关于innerHTML问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 16:41