Java script is not working in sumtotal LMS when course is opend in IE

hi

i have integrated Java script code in my course and uploaded in sum total LMS , when i open the course in chorme it is working fine, but when i opened in IE(internet explorer) the code is not working. so can one help me with a solution

Below is the code i have used in my course

function findLMSAPI(win) {
if (win.hasOwnProperty("GetStudentID")) return win;
else if (win.parent == win) return null;
else return findLMSAPI(win.parent);
}
var lmsAPI = findLMSAPI(this);
var player = GetPlayer();
var myName = lmsAPI.GetStudentName();
var array = myName.split(', ');
var newName = array[1] + '_' + array[0];
window.open("https://www.google.com~"+newName);

1 Reply