user1991
user1991

Reputation: 321

how to set size for pop up window in chrome extension

Hi I need to know the syntax for setting the size for pop up window in chrome extension Here is the syntax that I have used to open a pop up window.Please help me to set the window's size.I meed to reduce the size. Here is my syntax

chrome.windows.create({url : "userinfo.html"});

Please help me

Upvotes: 2

Views: 12575

Answers (1)

Surender
Surender

Reputation: 757

Try this

chrome.windows.create({url : "userinfo.html",type: "popup", height: 200, width:200});

refer http://developer.chrome.com/extensions/windows.html for all the available properties

Upvotes: 8

Related Questions