Javascript .open opens maximized in Chrome

When using the below to open a new window in Chrome the window always opens maximized. In Firefox it opens at the correct 200x200 size, so how can I get Chrome to behave the same and not maximize?

gamewindow = window.open("","","width=200,height=200");

I'm now finding that if I include location=0 and menubar=0 that they still show up in both Firefox and Chrome. What's the deal with this? Is there some other way to do pop out windows because it seems window.open is unreliable.

Answers


I'm testing your example on win7 and it works fine on chrome, at least for me

Have a look at this fiddle

Are you using it on a maximized (fullscreen) window on Mac?

Btw, I would not recommend using window.open since it usually gets blocked by pop-up blocker

Edit: tested on Chrome stable, build 28.0.1500.95 m


Need Your Help

Error with getting ImageURI with Phonegap

android angularjs cordova image-gallery

I'm trying to get a photo from the user's camera or gallery using phonegap 3.0.0 (+angular)

Can 2 classes share a friend function?

c++ friend-function

Today i have a doubt regarding friend function.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.