I have 2 pages A and B. I want to send parameters from page A to page B using windows.location.hrf. Exemple window.location.hrf ="www.gogle.com"
Asked
Active
Viewed 146 times
-5
-
3Hi Dan! This is a question better suited for Google. You can search your exact title within Google and find the answer as the first result! – Phil Oct 01 '19 at 19:20
-
1@Phil is right, and Google will even correct your typo! – JBis Oct 01 '19 at 22:30
-
Possible duplicate of [How to pass variable to href in javascript?](https://stackoverflow.com/questions/20769299/how-to-pass-variable-to-href-in-javascript) – mullac Oct 02 '19 at 01:42
1 Answers
0
make it pass value as in below example.
window.location.href = "www.google.com?parm=" + paramvalue;

rama krishna-rk
- 41
- 5
-
Thank you, and how you can get this value with this parameter on page B ? – LX100 Oct 02 '19 at 13:49
-
Check below link which explains the same. https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript – rama krishna-rk Oct 03 '19 at 14:32