# Snipet to Insert HTML at Caret

Here is a js snipte to insert html at caret. It is a cross-browser solution, so you don’t need to use the execCommand to call insertHTML or pasteHTML.