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?

2
  • 1
    i think you can use the $.get() function Commented Oct 27, 2015 at 14:36
  • Does not seem like a new question, try this!? Commented Oct 27, 2015 at 14:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.