How to use JavaScript to fill a form on another page

前端 未结 4 1515
猫巷女王i
猫巷女王i 2020-11-29 05:08

I am trying to fill out the fields on a form through JavaScript. The problem is I only know how to execute JavaScript on the current page so I cannot redirect to the form a

4条回答
  •  醉梦人生
    2020-11-29 05:29

    Its very easy using local storage
    The first page form

    
    
    
       
    Sign Up Form



    This is the second Page

    
     
    Here's Your data
    The Email is equal to: Email
    The Password is equal to Password
    The Mobile is equal to Mobile
    The Telephone is equal to Telephone

提交回复
热议问题