Friday, 13 May 2016

javascript - Retrieving url parameter from one html to another



I am sending one variable through an html file to another but using the code bellow to the second file it does't grab the variable.



For example : From i am sending myfile.html?myvariable=x



and i am trying to grab it with the code bellow..






Why it's not working?


Answer



Wanna to do it in JS:







njoy


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...