Visual InterDev

isVisible Method

See Also      Applies To

Returns a Boolean value that indicates whether an object is visible or hidden.

Syntax

object.isVisible()

Parameters

object

A script object.

Remarks

If the object is visible (the default), the method returns True, otherwise it returns False. To show and hide objects, use the show and hide methods.

Be careful not to confuse the display, show, and hide methods. The hide and show methods determine if the object is visible when browsing the page. The display method determines whether the object is included in the HTML stream.

Example

function btnCheck_onclick() 
{
   if (Checkbox1.isVisible() )      // Toggle visibility of the checkbox
      Checkbox1.hide();
   else
      Checkbox1.show(); 
}