Answers.Body: <p>Because this doesn't exhibit on the demo sites and hasn't been reported by anyone else, my first suggestion is to disable extensions/plugins/customizations because this may not be originating from CiviCRM.</p>
  
  <p>If that doesn't work, try the more detailed <a href="http://forum.civicrm.org/index.php/topic,35850" rel="nofollow">troubleshooting javascript in CiviCRM</a> guide.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T07:27:04.523Z
Answers.Text: Thanks for the reply. Knowing that this was a problem that no one else had described was very helpful. I started scrounging around in things unrelated to Drupal or CiviMail (I figured if it were a misbehaving module I wouldn't be the only one). Turned out to be a misbehaving browser plugin to prevent malicious popups that was so old I'd forgotten I even had it.
Answers.UserDisplayName: Jeff Wood
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T01:48:13.887Z
Answers.LastActivityDate: 2015-05-06T01:48:13.887Z
Answers.UserDisplayName: Coleman
Body: <p>I recently upgraded to 4.6.2...All's well until I try to create a new mailing. Every time I start to compose a message from scratch, or use a template a javascript call to the 'onbeforeunload' function is inserted into the bottom of the message which causes an error box to pop-up reading </p>
  
  <p>"Error Illegal characters in input (potential scripting attack)"</p>
  
  <p>What is going on? I've tried using different wysiwyg and no wysiwyg with the same results. It doesn't happen in any other HTML field I can find in CiviCRM or Drupal, only when creating a new mail message but I can't save or send a message because every attempt causes the script to be added and the error to be triggered.</p>
  
  <p>HELP!! This wasn't happening before the upgrade. But I'm stumped for a cause.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-05-06T01:46:22.787Z
Comments.Text: Can you attach a screenshot?
Comments.UserDisplayName: Coleman
Tags: <civimail>
Title: CiviMail adds call to onbeforeunload function then throws "Illegal Characters" error over and over again
ThreadText: # CiviMail adds call to onbeforeunload function then throws "Illegal Characters" error over and over again
  
  (Asked by: username_0 on 2015-05-05)
  
  I recently upgraded to 4.6.2...All's well until I try to create a new mailing. Every time I start to compose a message from scratch, or use a template a javascript call to the 'onbeforeunload' function is inserted into the bottom of the message which causes an error box to pop-up reading
  
  "Error Illegal characters in input (potential scripting attack)"
  
  What is going on? I've tried using different wysiwyg and no wysiwyg with the same results. It doesn't happen in any other HTML field I can find in CiviCRM or Drupal, only when creating a new mail message but I can't save or send a message because every attempt causes the script to be added and the error to be triggered.
  
  HELP!! This wasn't happening before the upgrade. But I'm stumped for a cause.
  
  **Tags:** civimail
  
  > **Comments:**
  > **username_1**: Can you attach a screenshot?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-05-06. Score: 1 | Accepted answer
  
  Because this doesn't exhibit on the demo sites and hasn't been reported by anyone else, my first suggestion is to disable extensions/plugins/customizations because this may not be originating from CiviCRM.
  
  If that doesn't work, try the more detailed [troubleshooting javascript in CiviCRM](http://forum.civicrm.org/index.php/topic,35850) guide.
  
  > **Comments:**
  > **username_0**: Thanks for the reply. Knowing that this was a problem that no one else had described was very helpful. I started scrounging around in things unrelated to Drupal or CiviMail (I figured if it were a misbehaving module I wouldn't be the only one). Turned out to be a misbehaving browser plugin to prevent malicious popups that was so old I'd forgotten I even had it.  
  
  ---
  
  