I searched for many pages of the web through of the Google and here on the Stack Overflow, but nothing suggested resolved my problem.
After many attempts, I’ve changed my way of testing that controller. Then I have discovered that the problem occurs always when I reopened the page through of the Ctrl + Shift + T
shortcut in Chrome. So the page ran, but without a parent window reference, and because this can’t be closed.
Related Contents:
- Is there a way to detect if a browser window is not currently active?
- JavaScript, browsers, window close – send an AJAX request or run a script on window closing
- window.location.href and window.open () methods in JavaScript
- What’s the difference between window.location= and window.location.replace()?
- Get viewport/window height in ReactJS
- Keyboard shortcuts with jQuery
- How to prevent closing browser window?
- jQuery/JS, iOS 4 and $(document).height() problems
- Javascript window.open pass values using POST
- JavaScript – Get Browser Height
- $(window).scrollTop() vs. $(document).scrollTop()
- Storing a variable in the JavaScript ‘window’ object is a proper way to use that object?
- window.open() on a multi-monitor/dual-monitor system – where does window pop up?
- How to Disable Copy Paste (Browser)
- ReferenceError and the global object
- Is it possible to create desktop applications with node.js? [duplicate]
- What’s the difference between self and window?
- location.host vs location.hostname and cross-browser compatibility?
- Create shortcut to console.log() in Chrome
- javascript to get paragraph of selected text in web page
- How to get a dom element in a new window?
- Difference between screen.availHeight and window.height()
- js window.open then print()
- window.open popup getting blocked during click event
- javascript – document.write error?
- How can I access and process nested objects, arrays or JSON?
- How to get the previous URL in JavaScript?
- How do I load the contents of a text file into a javascript variable?
- Finding All Combinations (Cartesian product) of JavaScript array values
- When should I use jQuery’s document.ready function?
- Chrome extension – retrieving global variable from webpage
- How to call reduce on an array of objects to sum their properties?
- Event when user stops scrolling
- Migrating AngularJS to Angular 4,5 (with DEMO) [closed]
- How can I insert a character after every n characters in javascript?
- Load local JSON file into variable
- Why is math.max() returning NaN on an array of integers?
- Javascript to convert UTC to local time
- Explanation of [].slice.call in javascript?
- Format a number as 2.5K if a thousand or more, otherwise 900
- How can I trigger a Bootstrap modal programmatically?
- HTML anchor link – href and onclick both?
- How to promisify Node’s child_process.exec and child_process.execFile functions with Bluebird?
- Prevent Address-Bar hiding in mobile Browsers
- What are “class fields” in JavaScript?
- How to position a DIV in a specific coordinates?
- Javascript : get src and set as variable?
- Disabling browser tooltips on links and s
- Add multiple window.onload events
- Wildcard string comparison in Javascript