Problem with Javascript

  •  06-16-2009, 5:13 AM

    Problem with Javascript

    Hi,
     
    I have added one script in html view, But now when click on preview view and click on button it is not calling the javascript function.
     
    Example.
     
    I have typed below code in html view
     
    "<script>
    alert('test');
    function abc()
    {
    alert('Hi');
    }
    </script>
    <img onclick="abc()" src="">
    "
     
    and when I got to preview and click on Image I am getting error object expected.
     
    I have added control and set the following property.
     
    <CE:Editor ID="editor"  Width="580px" BreakElement="Br" runat="server" EnableClientScript="true"
       EnableStripScriptTags="false" EnableStripLinkTagsCodeInjection="false" />
     
     
     Can you please help me to solve this problem.
     
    Regards,
    Nayan
     
     
     
     
View Complete Thread