Execute scripts inside document.getElementById().innerHTML

 Execute <script> (Java Script) tag from innerHTML
 1. Replace <script> your script data to be executed. </script> tag
    with <div class="javascript">your script data to be executed. </div> 

2. add a style in your page...
   <style type="text/css"> .javascript { display: none; } </style>

3. Now run  eval using jquery(Jquery js should be already included)
     $('.javascript').each(function() {


Post a Comment

Popular posts from this blog

Read mail from pst outlook file and then send all on some e-mail account using Java

Upload csv file at Google Cloud Storage using java

javax.mail.internet.AddressException: Local address contains control or whitespace in string