I have one variable in
.aspx code and i want to use it in my
How to make this work?
In .aspx code..
var url = document.referrer; var res = url.split("?"); var str = res;
So I want the str to be used in my .js code..
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
If it is not a Global variable yet, you can declare it as
window.js=res to force it in the global scope (and thus available to all other functions)