Q:

Trigger on onclick event doesn't work properly

I am trying to automatically set my browser to fullscreen mode. 
Here is my jquery Code.
function ActivateFullScreen() {
    var docElm = document.documentElement;
    if (docElm.requestFullscreen) {
        docElm.requestFullscreen();
    } else if (docElm.mozRequestFullScreen) {
        docElm.mozRequestFullScreen();
    } else if (docElm.webkitRequestFullScreen) {
        docElm.webkitRequestFullScreen();
    }
}

// Binding onlick event to my button
$('#triggerFullscreen').click(function () {
    ActivateFullScreen();
});

// None of these works.
$('#triggerFullscreen').click();

$('#triggerFullscreen').trigger('click');

ActivateFullScreen();

//my button
<button id="triggerFullscreen" ></button>

If I manually press the button my browser is set to fullscreen mode. 
I really have no clue why this is not working.
Tanks and Best regards
Markus

A:

Yes seems like security constraint
"To prevent embedded content from going fullscreen only embedded content specifically allowed via the allowfullscreen attribute of the HTML iframe element will be able to go fullscreen. This prevents untrusted content from going fullscreen."

for full article
https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html

