문제

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