JavaScript Object:  Button

Properties & Methods Functionality Test Data Test Case
form Checks name of the form which contains this button. Regular  Characters. but001.html
name Checks NAME attribute. Regular Characters.  but002.html
type Checks TYPE attribute. Regular Characters.  but003.html
value Checks VALUE attribute. Regular Characters.  but004.html
blur() First case checks whether blur method actually removes focus from the button or not.

Second case checks the return value from function blur without parantheses.

  but006.html

but009.html

click() First case checks whether click method simulates mouse-click or not.

Second case checks the return value from function click without parantheses.

  but007.html

but010.html

focus() First case checks whether focus method actually gives focus to the button or not.

Second case checks the return value from function focus without parantheses.

  but005.html

but008.html

handleEvent() Checks the return value from function handleEvent without parantheses.   but011.html