0

I get a value in my index.html page that I would like to send to another .html page when I load that page. I´m using jQuery - ajax to load the page.

<a href="pagetoload.html?myvariable='+myvarvaluetosend+'">Load page</a> 

Something like that... But how do I get it in the page I´m loading...I´m totally blank :-)

With .asp I know how to do it but not when the resiving page has to be a .html page?

Any input really appreciated, thanks!

Benoit Blanchon
  • 11,973
  • 4
  • 63
  • 74
Claes Gustavsson
  • 5,189
  • 9
  • 48
  • 76

1 Answers1

0

Using jQuery:

$("a").attr("href", "pagetoload.html?myvariable="+myvarvaluetosend);

See demo on jsFiddle

Benoit Blanchon
  • 11,973
  • 4
  • 63
  • 74