timothy5216
timothy5216

Reputation: 281

How do I auto detect a hyperlink while editing?

Can you auto detect a hyperlink in HTML,JavaScript or Objective C?

Upvotes: 0

Views: 451

Answers (1)

Phillip Jacobs
Phillip Jacobs

Reputation: 168

A hyperlink is part of the html spec.

<a href="whoa">blah</a>

In any language I'd do an xquery search in the DOM object to find all hyperlinks.

getElementsByTagName('a');

Upvotes: 3

Related Questions