I have a function to get a specific section of a URL and I save the results to a variable,
function getQueryVariable(variable) {
   var query = window.location.search.substring(1);
   var vars = query.split("&");
   for (var i=0;i<vars.length;i++) {
           var pair = vars[i].split("=");
           if(pair[0] == variable){return pair[1];}
   }
   return(false);
}
var inputId = getQueryVariable("elementId");
alert(inputId);
The problem is that I can not add the variable inputId to my onClick event,
<a href="#" onClick="Javascript:parent.setValue('Test','inputId')">test</a> 
Note that test is a dummy string so nothing to worry about.
 
    