Javascript only works in Google Chrome in debug mode -


The code below works fine in Internet Explorer, but it works only in Chrome if you are in debug mode , So what happened?

  window.onresize = function (e) {if (window.outerWidth === screen.width & amp; window.outerHeight == screen.height) {if (fullscreen ) {Fullscreen = true; Onfullscreenchange (true); }} And {if (fullscreen) {fullscreen = false; Onfullscreenchange (wrong); }}}; Function Complete ScanChange (full) {Alert (full); }    

try it

  var fullscreen; Window.onresize = function (e) {if (window.outerWidth === screen.width & amp; window.outerHeight == screen.height) {console.log ('fullscreen'); If (fullscreen! == 1) {fullscreen = 1; Onfullscreenchange (true); }} And {console.log ('! Fullscreen'); If (fullscreen! == 0) {fullscreen = 0; Onfullscreenchange (wrong); }}}; Function Complete ScanChange (full) {Alert (full); }    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -