Skip to content Skip to sidebar Skip to footer

How To Replace A Piece Of Html With Another Piece Of Html On A Page?

I'm making a simple browser extension which is supposed to be used for links addition on a page. The extension should to find text occurrences with references to laws and wrap them

Solution 1:

I'm not quite sure what you are asking, but from what I understand you want to replace DOM elements with other DOM elements. Look into innerHTML and/or createElement.


Post a Comment for "How To Replace A Piece Of Html With Another Piece Of Html On A Page?"