Home  >  Article  >  Web Front-end  >  js实现的的 文字自动'到google search框_表单特效

js实现的的 文字自动'到google search框_表单特效

WBOY
WBOYOriginal
2016-05-16 19:13:041329browse

说明:单独用没问题不能和自带的搜索和登陆同时出现在一个页面上,打开页面时都没出错只要一点aaa等 网页上就会有错误,我解决的办法是让他们不在同一页面上出现,但这样很不方便了能不能 定义 val 或其他方法来解决这个问题?请各位大大指点!谢谢
document.forms[0] 是指页面中的第一个表单,当页面有两个表单的时候,setval(val)只对form[0]有效.出现第二个表单就是forms[1]了


[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn