How to pass values from one HTML page to other using javascript?

后端 未结 2 1846
既然无缘
既然无缘 2021-01-16 06:47

I want to pass my value of one variable to another html page using query string.

first.html:


   
2条回答
  •  孤城傲影
    2021-01-16 07:14

    EDIT: I've edited slightly and this seems to work for me, what exactly is the problem?

    Please explain what "required result" is..

    Page 1

       
        
    
       
       

    Page 2

    
    

    Have a look at this link http://www.htmlgoodies.com/beyond/javascript/article.php/3471111/A-Quick-Tutorial-on-JavaScript-Variable-Passing.htm

提交回复
热议问题