-5

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"

LX100
  • 103
  • 2
  • 3
    Hi 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 Answers1

0

make it pass value as in below example.

window.location.href = "www.google.com?parm=" + paramvalue;