Delete an HTML5 Element by CSS3 Selector.
CSS3 Selector of HTML5 Element to remove.
If you are unfamiliar with CSS3 Selectors have a look in Finding the correct CSS3 Selector article.
Delete an HTML5 Element by CSS3 Selector.
Visual Basic |
---|
Public Sub Delete( _ ByVal Selector As String _ ) |
CSS3 Selector of HTML5 Element to remove.
If you are unfamiliar with CSS3 Selectors have a look in Finding the correct CSS3 Selector article.
The method is equivalent to:
Code |
Copy Code |
---|---|
(function(){var el=document.querySelector(css3_selector); el.parentNode.removeChild(el);})(); |