Hello gurus,
My objective is to execute a function when a row is added to a table.
The row addition is done dynamicaly using JS
to do this. i dynamicaly create a table cell and embed a <script> tag inside ( as innerHTML) .
i expect to see an alert each time the cell was added.Code:"<scr"+"ipt language='javascript'> alert( 'hello'); " + "</scr"+"ipt>"
but nothing showed up. what could be the problem?
btw i cannot write
because the </script> tag inside the string causes conflict with the actual <script> opening tag.Code:"<script language='javascript'> alert( 'hello'); </script> "
Thanks in advance




Reply With Quote