What is the correct syntax for passing variables in a href tag when the href is outside of the javascript tags? I believe it is not recognizing the href because it is not reading the variables: boxid & projectname. Please advise.
var linkURL = '';
var boxid = '';
var changeLinkURL = '';
function getUrlVars()
{
var vars = [], boxid;
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
Bookmarks