I have the following:
window.linkFrom;
$(document).ready(function(){
$("a.linker").click(function(event){
window.linkFrom = $(this).closest("div").attr("id");
alert(window.linkFrom);
});
});
and want to pass the var linkFrom to a different script on a second page:
window.linkFrom;
(document).ready(function(){
alert(window.linkFrom);
});
How do I make this work?
TIA.