I am setting a variable (url), to be set upon a click event, and setting that variable value by picking up an attribute of the DOM:
In the first webpage:
$('.button1').click(function(){
var url=$(this).attr('title');
});
I would like to use this value of variable "url" which is now set after the "click", and use this in another webpage, call it Page2. The reason is that I would like to be able to load external content using AJAX (using Jquery "load" command) to some element in Page2.
I am pretty new to Jquery. I am a designer and use Jquery mostly for creating effects within a webpage.