Hi Adam - I don't think it's possible for me to test this on the demo site. As I mentioned in my original post, it only doesn't work when the relevant anchors are inserted using the "PasteHTML" function. Your http://cutesoft.net/asp/JavaScript-API.asp page uses "PasteHTML" to insert "this is a test". If your goal is to test it on your server, perhaps you could modify that page to allow the user to enter the html that is entered by the "Insert HTML" button? Alternatively, I could email you my test page in which I took your JavaScript-API.asp and edited to insert the troublesome html. - Anne