Table of Contents

Method CreateElement

Namespace
DotNetBrowser.Dom
Assembly
DotNetBrowser.dll

CreateElement(string)

Creates and returns a new DOM element with the specified tag name.

IElement CreateElement(string tagName)

Parameters

tagName string

the tag name (e.g. "A", "P", "DIV") of the new DOM element.

Returns

IElement

the new IElement or null if the tagName is incorrect.

Exceptions

ArgumentException

The tagName is null, empty, or contains only blank characters.