Javascript is interpreted but it shouldn't

  •  10-21-2005, 11:16 AM

    Javascript is interpreted but it shouldn't

    Hi,
     
    In my Html I have the following code.
    <script language="JavaScript">
    <!-- Begin
    document.write('<a href=\"mailto:contact'+ '@' + 'mydomain.com\">');
    document.write('contact'+ '@' +'mydomain.com</a>');
    // End -->
    </script>

    When I switch to WYSIWYG Mode I have [email protected] as it should, when I switch to html mode again I have
    <script language="JavaScript">
    <!-- Begin
    document.write('<a href=\"mailto:contact'+ '@' + 'mydomain.com\">');
    document.write('contact'+ '@' +'mydomain.com</a>');
    // End -->
    </script>
     
    So next time I switch to Normal mode I have the mailto href twice.
     
    Why is this appearing ?
     
    Séb
View Complete Thread