4
4
4eloBek2015-09-05 13:54:35
JavaScript
4eloBek, 2015-09-05 13:54:35

How to insert anchor in execcommand?

Does anyone know how to insert an anchor using execcommand , i.e. so:
<a name="..." >...</a>
I tried the usual method

document.execCommand("CreateBookmark", false, "AnchorName");

does not work(
___________
(06.09.15. 00:14) I figured it out. I'm changing Replac'om.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question