I have mozzilla firefox (technically Aurora 15) browser and I have the browser set so all new windows open in a new tab. Till recently I though it was impossible to make the link pop up in a new window with any sort of javascript or anything similar like that.
But i was surprised that my router’s ‘site’ has managed to do that. (the thing you access with 192.168.0.1)
I have a Netgear modem router (DG834G).
When i go to Basic Settings at the bottom of the page I have Test button and when i click it a new window pops up which refreshes every couple of seconds telling you about connection status etc and if connection is successful it directs you to the netgear website.
What i dont understand is how the website pops up in a new window. From what i see the router is using javascript to do this.
Is it possible to accomplish this with javascript or do routers receive special treatment??
Yes it is. Just add width and height and the browser (not all) will open it in a new windows instead of tab.