Home News DOC Class DL Others Rice
Class  >  jsexecutor  >  ExistsId(string)
jsexecutor class : ExistsId(string) method

Description

Returns a value that indicates whether the element exists.

Syntax

instance.ExistsId(string id)

Arguments

ClassNameDescription
stringidThe value of the id attribute.

Return value

ClassDescription
boolExistence

Sample code

1:

window w;

2:

jsexecutor jse = w.CurrentJSExecutor;

3:

bool exists = jse.ExistsId("unique"); // If the document has element which id attribute is "unique", it returns true.

Notes

Returns true if the document has an element with the specified id attribute value. Otherwise, returns false.

Links for reference

None.

Copyright © Rice All rights reserved.