Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top