method:init ( element, attributes )
return type:void
content:ใช้กำหนดค่าเริ่มต้นต่างๆให้กับ object button ( เป็น constructor ของ Yahoo.util.Button )
example:var attributes = { label: "One" };
var checkbox_button = new YAHOO.widget.Button( "checkbutton", attributes );
checkbox_button.init ( "checkbutton", { label: "my button" } );
comment:ตัวแปร element คือ id ของ element หรือ dom element ที่ต้องการให้เกิดการกระทำนี้
ตัวแปร attributes คือ ใช้กำหนดคุณสมบัติให้กับ object เช่น checked, container, disabled, href เป็นต้น