## [HTML]中(location.href在form标签内无法执行)

[HTML]中(location.href在form标签内无法执行)

在form标签内onkeypress属性内添加方法pagenumber()
在form标签内onkeypress属性内添加方法pagenumber()]

在方法pagenumber()中按下回车键时执行location.href,但是代码没有执行成功,删除form标签后成功跳转

在方法pagenumber()中按下回车键时执行location.href,但是代码没有执行成功,删除form标签后成功跳转

**

猜你喜欢

转载自blog.csdn.net/smzyydwwb/article/details/84073560
今日推荐