Home > Javascript > Crash FreeTextBox using Javascript

Crash FreeTextBox using Javascript

December 28th, 2006 Leave a comment Go to comments

Would you like to crash FreeTextBox? Here is the trick. Visit the page http://freetextbox.com/demos/Default.aspx

Click on HTML view and copy/paste the following code.

<script language="javascript">alert("Hi");</script>
Hello

Press “Save” button. This will convert your code into

<script language="javascript">
	<![CDATA[lert("Hi");]]>
</script>
Hello

Note that “a” is missing. Pretty interesting!!! hmmmmmm….
Now again click on HTML view and copy/paste following code

<script language="javascript">
<![CDATA[alert("Hi");]]>
</script>
Hello

Now you will see error….. Hurray…… You crashed FreeTextBox !!!!!!!!!!!!!!!!
Now you might think how can I write javascript in FreeTextBox? Here is the solution.

<script language="javascript">
<!--	alert("Hi"); -->
</script>
Hello

Now it will perfectly show you script and will execute without any problem.

Categories: Javascript Tags:
  1. saeeid
    September 15th, 2009 at 01:55 | #1

    hi
    i am saeed
    plz
    i am new jsp programer (no perfetional) ; i need a richtext box for my site;
    but i can not find it;
    pliz help me
    thank you

  2. September 15th, 2009 at 13:28 | #2

    @saeeid

    You may use FCKEditor(http://www.fckeditor.net) for your jsp program.

  1. No trackbacks yet.