The problem I had was that I simplified the following script to make it easier to read and debug.

The script worked without errors in Chrome, Opera, Safari and Firefox even with FireBug.

Unfortunately IE8 through a wobbler because I had the Internet options "Display a notifcation about every script error" checked. The IE8 error was "Unterminated string constant".

Here is the script:
Code:
<a 
 href='http://localhost/index-java-error.php' 
 onclick=
 "
  window.open
  (
    '/function_sendmail.php?sendurl=www.example.com/', 
    '_blank',
   '
    width=300,	
    height=420,
    toolbar=no,
    menubar=no,
    scrollbars=no,
    resizable=no,
    location=no,
    directories=no,
    status=no,
    top=150,
    left=150
   ', 0
  );
"
>
<img 
  src='button_sendpage.gif' 
  style='margin-left:5px;border:0' 
  alt='Send This Page to Friend' 
/>
</a>

I eventually found the error which was to remove every single linefeed from the "width height, toolbar, etc".

Is there a way to format Javascript and not produce IE8 errors?




.