javascript - Resize popup Window with super key(window key) and uparrow combination key event -


my question bit weird, have no other choice ask .

 //opening popup height & width "1".  var popupwindow1 = window.open(<pageurl>', '', 'width=1, height=1, top=1, left=1,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes, menubar=no');   //after sometime, reloading popup window domain page     url.   settimeout(function() {popupwindow1.location.href = <another domain page    url>;}, 5000); 

now requirement resize popup window width , height 500 each or maximise full window screen. since page urls different domains, "resizeto()" not work.

error: permission denied access property 'resizeto'.

note: superkey(windowkey) + uparrow combination key shortcut maximize window. tried in browsers manually , able maximise window.

below thoughts:

1) detect superkey(windowkey) + uparrow combination key event when popup window reloaded another domain page url . below code detecting each key separately in key event.

2) if #1 success( able detect combination key), how can trigger keyup event dynamically ( perhaps want trigger on page load) ? possible?

         var windowkey = false;          var uparrow = false;          if (ekeycode == 91 || ekeycode == 92)            {              superkey = true;             alert('super key pressed');           }           if (ekeycode == 38)             {              uparrow = true;              alert('up arrow key pressed');             }            if (windowkey == true && uparrow == true) {                 //maximize full screen or set width & height popup window               } 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -