rodesignweb

Member
Aug 5, 2007
10
0
51
Hello,

I have an index.html file and the problem is that contains a javascript :

<script>
...
</script>

The problem is that HTML editor will display this:

'); newWindow.document.write('
'); newWindow.document.write('Click screen to close'); newWindow.document.write('

If I remove the JavaScript code everything is working fine. I also attached to this the script that I am using. My questions are: is html editor not supporting JavaScript code, or my code has something that is not working good?

Please advice. Thanks!
 

Attachments

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
What is your full cPanel version number?

There was some oddities with the HTML Editor and Javascript that we fixed in the 11.23 builds, but the 11.18 builds don't have the fixes.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
With IE, we found that some javascript was being parsed and executed, thereby modifying the underlying document, simply by switching between the preview and code modes. FireFox didn't have this problem (nor other browsers tested, only IE)