javascript setHTML strips javascript

  •  01-30-2008, 9:11 AM

    javascript setHTML strips javascript

    Hi
     
    I am using the javascript setHTML method it works fine except when trying to insert some javascript with the html.
     
    I tried inserting
     
    <script type="text/javascript">
    alert('hi');
    </script>
    Try click the "get HTML" button
     
    on your demo page
     
    this strips out the javascript.
     
    I have also tried setting EnableStripScriptTags="false".
     
    Is there a way of making the javascript stay?
     
    Thanks
     
     
View Complete Thread