-
-
-
-
method:focus ();
return type:void
content:ใช้กำหนดให้ password ได้รับ focus
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.focus();
-
method:blur ();
return type:void
content:ใช้กำหนดให้ password สูญเสีย focus
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.blur();
-
method:click ();
return type:void
content:ใช้กำหนดให้ เหมือนมีการ click ที่ password
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.click();
-
method:select ();
return type:void
content:ใช้กำหนดให้ มีแถบสีคลุมที่ password
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.select();
-
property:name;
return type:string, void
content:ใช้ในการกำหนดค่า หรือคืนค่า name ของ password
example:var tagPassword = document.getElementById ( "bamboo" );
alert ( tagPassword.name );
-
property:id;
return type:string, void
content:ใช้ในการกำหนดค่า หรือคืนค่า id ของ password
example:var tagPassword = document.getElementById ( "bamboo" );
alert ( tagPassword.id );
-
property:type;
return type:string, void
content:ใช้ในการกำหนดค่า หรือคืนค่า type ของ password
example:var tagPassword = document.getElementById ( "bamboo" );
alert ( tagPassword.type );
-
property:value;
return type:string, void
content:ใช้ในการกำหนดค่า หรือคืนค่า value ของ password
example:var tagPassword = document.getElementById ( "bamboo" );
alert ( tagPassword.value );
-
property:defaultValue;
return type:string, void
content:ใช้ในการกำหนดค่า หรือคืนค่า default value ของ password
example:var tagPassword = document.getElementById ( "bamboo" );
alert ( tagPassword.defaultValue );
-
property:form;
return type:form
content:ใช้คืนค่า form element ของ password
example:var tagPassword = document.getElementById ( "bamboo" );
alert ( tagPassword.form );
-
property:size;
return type:string, void
content:ใช้ในการกำหนดค่า หรือคืนค่า ขนาด ของ password
example:var tagPassword = document.getElementById ( "bamboo" );
alert ( tagPassword.size );
-
property:maxLength;
return type:string, void
content:ใช้ในการกำหนดค่า หรือคืนค่า จำนวนสูงสุด ของ password
example:var tagPassword = document.getElementById ( "bamboo" );
alert ( tagPassword.maxLength );
-
property:readOnly;
return type:boolean, void
content:ใช้ตรวจสอบ หรือกำหนดว่า password ใช้อ่านอย่างเดียวใช่หรือไม่ คือไม่สามารถเปลี่ยนแปลงข้อมูลภายในได้
example:var tagPassword = document.getElementById ( "bamboo" );
if ( tagPassword.readOnly )
{
alert ( "can not change data in password" );
}
-
property:tabIndex;
return type:string, void
content:ใช้ในการกำหนดค่า หรือคืนค่า ลำดับการได้รับ focus ของ password เมื่อกดปุ่ม tab
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.tagIndex = "5";
-
property:accessKey;
return type:string, void
content:ใช้ในการกำหนดค่า หรือคืนค่า คีย์ลัด ( จากการกดปุ่ม alt + key )
example:var tagPassword = document.getElementById ( "bamboo" );
alert ( tagPassword.accessKey );
-
property:disabled;
return type:boolean, void
content:ใช้ตรวจสอบ หรือกำหนดค่า ว่าจะให้ password นี้ทำงานหรือไม่
example:var tagPassword = document.getElementById ( "bamboo" );
if ( tagPassword.disabled )
{
alert ( "password is not enabled" );
}
-
property:accept;
return type:string, void
content:ใช้กำหนดค่า หรือคืนค่า ชนิดของเนื้อหาที่จะส่งไป server
example:var tagPassword = document.getElementById ( "bamboo" );
alert ( tagPassword.accept );
-
property:onfocus = function;
return type:void
content:ใช้กำหนดให้ function ทำงานเมื่อ password ได้รับ focus
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.onfocus = function()
{
alert ( "password gain focus" );
}
-
property:onblur = function;
return type:void
content:ใช้กำหนดให้ function ทำงานเมื่อ password สูญเสีย focus
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.onblur = function()
{
alert ( "password loss focus" );
}
-
property:onclick = function;
return type:void
content:ใช้กำหนดให้ function ทำงานเมื่อ password ถูก click
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.onclick = function()
{
alert ( "password be clicked" );
}
-
property:onkeypress = function;
return type:void
content:ใช้กำหนดให้ function ทำงานเมื่อ มีการกดปุ่มที่ password
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.onkeypress = function()
{
alert ( "password be keypressed" );
}
-
property:onkeydown = function;
return type:void
content:ใช้กำหนดให้ function ทำงานเมื่อ มีการกดปุ่มลงบน password
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.onkeydown = function()
{
alert ( "password be keydowned" );
}
-
property:onkeyup = function;
return type:void
content:ใช้กำหนดให้ function ทำงานเมื่อ มีการปล่อยปุ่มที่กดลงบน password
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.onkeyup = function()
{
alert ( "password be keyuped" );
}
-
property:onselectedstart = function;
return type:void
content:ใช้กำหนดให้ function ทำงานเมื่อ มีการเริ่มต้นลากแถบสีเลือกข้อความบน password
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.onselectedstart = function()
{
alert ( "password be start selected" );
}
-
property:onchange = function;
return type:void
content:ใช้กำหนดให้ function ทำงานเมื่อ ข้อมูลใน password เปลี่ยนแปลง
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.onchange = function()
{
alert ( "password be changed" );
}
-
property:onselect = function;
return type:void
content:ใช้กำหนดให้ function ทำงานเมื่อมีการลากแถบสีคลุมข้อความใน password
example:var tagPassword = document.getElementById ( "bamboo" );
tagPassword.onselect = function()
{
alert ( "password be selected" );
}