Dynamic web template access denied with javascript

J

Jessica

I'm using a dwt and in it i have java script. I keep getting a runtime error: access denied once i click on of my javascript buttons. I tried to make the code below (which is located in my head tags) an editable region, but it just makes the first table in my body editable. Suggestions
It is the popup.moveTo line below that it points to as an error when i try to debug.
<script language="JavaScript"
function openPopUp(url,target,attributes)

popup = window.open(url,target,attributes)
popup.moveTo((window.screen.availWidth - 640) / 2, (window.screen.availHeight - 480) / 2)
popup.focus();blur()

</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top