Javascript working in everything but IE


I'm aware that E-LH don't support Javascript, but... I was wondering if anyone else had come across an issue with Javascript not running in Internet Explorer or Edge? Everything works fine on PC and Mac Chrome/Firefox/Safari, it's just that IE refuses to action any of the JS or present any errors.

Is this a problem that IE has with JS? Has anyone come across it before?

Here is my code that grabs the name from the URL and sets a variable:

 function gup( name )
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
return results[1];

var player = GetPlayer();

var sid = gup("u");
var sname = gup("f");


Many thanks in advance,

2 Replies