0

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??

4

2 に答える 2

2

はい、そうです。幅と高さを追加するだけで、ブラウザ (すべてではない) がタブではなく新しいウィンドウで開きます。

window.open(url, windowName, "height=200,width=200");
于 2012-07-03T21:11:29.657 に答える
0

通常window.open();、新しいウィンドウを開きます。

詳細については、https ://developer.mozilla.org/en/DOM/window.openをご覧ください。

これでうまくいかない場合は、ページで使用されているJavaScriptを投稿してください。確認します。

于 2012-07-03T21:07:39.847 に答える