Adding Text to the Copy Event not working in IE


hi,

 

i added addtexttocopy() function topics in robohelp 2015 , flashhelp output works in every browser except internet explorer. tested function on test site , works fine ... in flashhelp output function not work in ie. appreciate ideas!

thanks,

av

 

ps : in case, script :

 

<script language="javascript">

function addtexttocopy() {

         var selection = window.getselection(),

             

            pagelink = '<br><br> copyright text',

             copytext = selection + pagelink,

             newdiv = document.createelement('div');

 

         newdiv.style.position = 'absolute';

         newdiv.style.left = '-99999px';

 

         document.body.appendchild(newdiv);

         newdiv.innerhtml = copytext;

         selection.selectallchildren(newdiv);

 

         window.settimeout(function () {

             document.body.removechild(newdiv);

         }, 100);

     }

 

     document.addeventlistener('copy', addtexttocopy);

< /script>



More discussions in FlashHelp (produced by RoboHelp) - Not for general Flash problems


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop