'How to run cordova command from other server and JS?

My idea is to open external links in a native way with the JS command:

window.open('https://www.facebook.com', '_system');

But this not working, the reason is that JS from above is on another server and other JS files. Actually, in my example above, I want from facebook.com in-app browser site JS to open an external link in the system browser?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source