On page 1 I have a button with onClick="window.location.href='Rendering.html?myVar1=3'"
Then I am hoping to use the myVar1
value here in page 2 (Rendering.html
) functions.
In page 2, I have:
var qs = new querystring();
var slideIndex = qs.get("myVar1")
showSlides(slideIndex);
However this doesn't seem to work.