Javascript variable with '<%1' prevents pasting in IE 7.

  •  02-02-2009, 9:39 AM

    Javascript variable with '<%1' prevents pasting in IE 7.

    I have a javascript variable that is somehow preventing me from pasting into textareas. I have my variables printing in the page head, but have found that if I move them into the document body that pasting works fine. So I guess there is a workaround, but any idea why this is happening?
    Also, this works fine in FireFox 3 and is only a problem in IE 7.
     
    The problem can be recreated by putting the following variable in the document head:
    var sample="<%1";
     

     
View Complete Thread