SVG script

I have a script in SVG which has an error that I can not understand.
The script opens new window upon a 'rect' click.

Following code gives me an error of "Permission denied" :

   <script type="text/ecmascript"><![CDATA[    
     function open()
     {
       window.open('window.html','newWindow');   
     }
   ]]></script>
  <rect onclick="open()" fill="orange" x="27" y="22" width="13" height="11"/>
    
When I tried this script within HTML it worked fine.
Can somebody help me please?

Received on Wednesday, 8 January 2003 23:31:13 UTC