I have a service in which users paste javascript code into their website, in the body tag. Sometimes the page on which the code is embedded produces a javascript error from other javascript files that prevent our script from running.
Is there a way to develop our code so that it does not interfere with other areas of javascript.
The only solution I can think of is to put js code in an iframe.
source
share