在一个HTML中有这样一段代码:<table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" style="display: block;" id="tip_confirmPassword"><tbody><tr><td width="14" valign="top" align="left"/><td height="20" valign="middle" align="left" id="errorbox"> Please enter the confirmed password</td></tr></tbody></table>
var error = document.getElementById("errorbox");
我怎么通过error这个NODE, 得到tip_confirmPassword这个节点,
并用window.location.href跳到这个节点上呢, 用抛锚的方式
var error = document.getElementById("errorbox");
我怎么通过error这个NODE, 得到tip_confirmPassword这个节点,
并用window.location.href跳到这个节点上呢, 用抛锚的方式
解决方案 »
- Ext Ext.ux.form.LovCombo setValue()赋值问题!沙发也给分.!!!
- 下面的这些代码是哪方面的知识?
- 大大们过来帮忙看看 js 读excel 不能实现
- JavaScript无法在浏览器上正常显示(由于毕业设计,非常急)
- 利用javascript把网页选中的文本替换成一个链接或改变选中文本的文字的字体和颜色
- 求一简单正则,如何判断一字符串既是"开头,又是"结尾的。
- 做网上地图,怎么判断图片托出了呢
- *******为什么无法调用ActiveX控件?????在线等待!
- 如何编程改变IE的安全级别?
- dede织梦系统头部文件无法调用,显示不出来
- 如何设置input file获取文件后的文本框为空
- createElement一个元素被拦截了
<script>
window.onload=function(){
var err = document.getElementById("errorbox");
var tb = err.parentNode.parentNode.parentNode;
tb.scrollIntoView();}
</script>
<br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" style="display: block;" id="tip_confirmPassword"> <tbody> <tr> <td width="14" valign="top" align="left"/> <td height="20" valign="middle" align="left" id="errorbox"> Please enter the confirmed password </td> </tr> </tbody> </table>