Let me preface this by saying, this is for an enterprise application. So don't worry about the usual client side limitations and issues of a normal website. Been racking my head for days to no avail. So I'm resorting to here in hopes someone can solve this.
What I need to do: Launch a url in chrome that always loads in the same chrome browser window. This can be done from command line or from another chrome window(preferably JS, but I am open to ideas)
The issue: An inbuilt security feature in chrome (works fine in IE) prevents javascript from launching full fledged new windows without user interaction to initiate it. What you get instead is a locked down window that ignores the target window you are trying to launch to. By locked down window, I mean no toolbar, can't edit the url, and it ignores the target parameter. No error is thrown.
Chrome Version 37.0.2062.120 m
None of the command line options I tried work, maybe I missed one that would fix it though.
Here is the PoC code that works in IE but not Chrome: html launched via command line in chrome:
<HTML>
<BODY>
<SCRIPT type="text/javascript">
var win = window.open("landing.html", "CustomTarget");
window.close();
</SCRIPT>
</BODY>
</HTML>
I'm very good a JavaScript, but very little in stuff like jQuery. I am open to using them, just please explain them well. Any help is greatly appreciated. All the best!