Ramesh Moorthy
Ramesh Moorthy

Reputation: 689

Opening a JS popup window in chrome browser, the window size is too small?

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

Answers (3)

Sudip
Sudip

Reputation: 2051

You can use fixed width and height in your Popup window

window.open('','','width=200,height=100');

Upvotes: 1

Toon Casteele
Toon Casteele

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

Sidney Gijzen
Sidney Gijzen

Reputation: 2001

You can set the width and height when calling the window.open(). Check this post for more information.

Upvotes: 0

Related Questions