0

I want to use jQuery's .load function to load an element from the previous page into a JavaScript variable.

So instead of

var x = document.referrer; 
$('.title').load(x +" #name");

I want it to be:

var x = document.referrer; 
$('var y').load(x +" #name");

so I can work with the variable.

Do you have any suggestions how to manage it?

Musa
  • 96,336
  • 17
  • 118
  • 137
Alex
  • 1

0 Answers0