IE 11 keeps asking to allow Active X and scripts

I’m busy with a Digital signage project. There will be a lot of mp4’s on a folder on our server. Example: 170622-nm-SO.mp4 (= this needs to be played on 22 June in the morning)

I’ve made a html page with JS, that will choose the correct mp4 on the correct time. Everything works just fine in Chrome, but in Internet Explorer 11, it keeps asking this:enter image description here

This html file will run localy at a windows10 computer. It needs to happen in IE11. I’ve tried a lot of the IE11 settings, but it keeps asking this when executing the file.

How can I solve it, that it won’t ask this ever again?

Thanks for the help!

[![<video width="100%" autoplay l][1]][1]oop>
  <source id="filmpje" src="https//" type="video/mp4">
  Your browser does not support HTML5 video.

// Speciale versie voor KW. Hierbij is er één HTML bestand per scherm. 
// Deze werd gemaakt voor scherm 1 = SO 

  var link = "//";
  var verkrijgDefault = false;
  var day;  
  var moment;
  var today = new Date()

  function urlExists(url, callback) {
  .then(function(status) {

// wordt niet gebruikt momenteel, werkt niet in xibo
function doesFileExist(urlToFile)
    var xhr = new XMLHttpRequest();'HEAD', urlToFile, false);

    if (xhr.status == "404") {
        console.log("File doesn't exist");
        return false;
    } else {
        console.log("File exists");
        return true;

  if (today.getHours()=12 && today.getHours()=17){
  moment = "av";
  verkrijgDefault = true;
    console.log("bij het moment");

Date.prototype.yymmdd = function() {
  var mm = this.getMonth() + 1; // getMonth() is zero-based
  var dd = this.getDate();

  return [this.getFullYear().toString().substr(-2),
          (mm>9 ? '' : '0') + mm,
          (dd>9 ? '' : '0') + dd

var date = new Date();

if (verkrijgDefault == false){

  // In this testversion, I look to a fixed file on the desktop.
  link = "170622-vm-SO.mp4"
  //link = "file://"
 // link = "//" + date.yymmdd() + "-" + moment + "-SO.mp4";


 document.getElementById("filmpje").src= link;

Source: stackoverflow-javascript