# Javascript from pop-up tutorial doesn't work in Explorer

**URL:** https://forum.kirupa.com/t/javascript-from-pop-up-tutorial-doesnt-work-in-explorer/298502
**Category:** Uncategorized
**Created:** [October 20, 2009, 10:22am UTC](https://forum.kirupa.com/t/javascript-from-pop-up-tutorial-doesnt-work-in-explorer/298502 "2009-10-20T10:22:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kathari](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@kathari](https://forum.kirupa.com/u/kathari)
#### Post date: [October 20, 2009, 10:22am UTC](https://forum.kirupa.com/t/javascript-from-pop-up-tutorial-doesnt-work-in-explorer/298502/1 "2009-10-20T10:22:23Z")

</div>

Hi,  
I have made a “pop-up” window from Flash with the help of this tutorial: [http://www.kirupa.com/developer/flash8/video/popUpWindows.htm](http://www.kirupa.com/developer/flash8/video/popUpWindows.htm)  
However it doesn’t seem to work on Explorer. I get an “error in page” message.  
It works fine in Opera, Safari, Firefox for Mac.

I made the code as it says in the tutorial but also added this to the page in the header:

```auto
<script language="JavaScript" type="text/JavaScript">
<!--
window.moveTo(0,0)
window.resizeTo(screen.availWidth,screen.availHeight)
//-->
</script>

```

Anyone knows what’s wrong?:\*(
