Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
javascript embedded in html
posted

I am trying to use the html editor and the html text starts with <script type="text/javascript" language="javascript">i=10816</script>  <script type="text/javascript" language="javascript" src="http://t2.trackalyzer.com/trackalyze.js"></scrip>.  When the control is displayed the javascript has been stripped out.  Is there a way around this?

Parents
No Data
Reply
  • 24497
    posted

    Hi,

    I guess that is related to IE only and when <script> is the first object in editor. If yes, then that is well known feature of IE. It does not allow various objects to be first child in innerHTML. You may trick IE by inserting a dummy in front of that first object. For example:

    <span style="display: none;">&nbsp;</span><script type="text/javascript">alert('ok')</script>

Children
No Data