So I have this JavaScript function getSearchVariable which basically acquires a variable from the URL using raw Javascript.
I need to redirect the user to a page with a URL with some static text before the variable and after the variable.
document.location.href="http://example.com/tracer?="+(getSearchVariable('Track')+"&tba=N"
Any idea on why something like the code above won’t work?
Because you are missing a )
it should be