简体   繁体   中英

how to pass data from one page to another page using only javascript?

Hi there Folks, i would like to know that when we would like to transfer data from one page to another using java script and not refreshing the page. What are the steps or to say the perfect step to do so because i have been on this problem for at least 2-3 days. All efforts are futile, the code i used are not processing perfectly. If there is a way to strictly use java script method and post method and send data to another page without refreshing. The page does not refresh is done but the data is not getting transferred to another page.

If any great programmer dudes can help me with an example.pls.

I think you can use Local Storage or Session Storage provided by Javascript. It saves your data for later use. I use it on my project and so far so good.

Here's the link for the manual: http://www.w3schools.com/html/html5_webstorage.asp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM