Вопрос

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

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top