I have two pages, page 1 and page 2.
Page 1 is loaded into page 2 using the jQuery load() function.
Page 1 contains a javascript value js_value which is created dynamically
in Page 1 after Page 1 is loaded into Page 2.
I need to retrieve js_value in page 2.
Is there a way to do this? Thanks
It should be loaded already
When calling .load() using a URL without a suffixed selector expression, the content is passed to .html() prior to scripts being removed. This executes the script blocks before they are discarded. If .load() is called with a selector expression appended to the URL, however, the scripts are stripped out prior to the DOM being updated, and thus are not executed.