Reputation: 689
I write a script to open a popup window, the window is too small in chrome browser compared with Firefox and Internet Explorer.
Here is my script,
function openPopup(sId,tId)
{
window.open ("index.php?sid=" + sid+"&tid="+tid, "test", "fullscreen,scrollbars,hotkeys=no");
}
Any help? thanks for advance.
Upvotes: 0
Views: 2872
Reputation: 2051
You can use fixed width
and height
in your Popup window
window.open('','','width=200,height=100');
Upvotes: 1
Reputation: 2579
As far as I know, fullscreen is not a parameter for window options. try height and width attributes to set the size
Upvotes: 0
Reputation: 2001
You can set the width and height when calling the window.open(). Check this post for more information.
Upvotes: 0