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
  • 13,364
  • 4
  • 73
  • 81
Claes Gustavsson
  • 5,509
  • 11
  • 50
  • 86

1 Answers1

0

Using jQuery:

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

See demo on jsFiddle

Benoit Blanchon
  • 13,364
  • 4
  • 73
  • 81