I am trying to get this java script function to work when a button is clicked. I do not get the code highlighted as if there is a syntax error. However, when the page is previewed I get the message 'Done, but with errors on page' on the status bar. Has anybody any suggestions thanks.
<head>...