1、创建一个名称为 serach_form 的html文件
2、添加一个input元素 设置input类型为search设置id为 my_search_id_form,添加一个表单并设置表单名称
3、添加一个button按钮,在点击事件中加入自定义函数my娄多骋能_search_form添加一p标签,设置id 为 show_search_form
4、在javascript中创建一个自定义函数 my_search_form
5、在自定义函数中获取input search对象。用 form 属性获取表单对象,并用表单属性name获取表单名称,将获取的结果添加到p标签中显示
6、在浏览器中打开文件 search_form,点击button查看效果