# POP Up Window

**URL:** <https://forum.kirupa.com/t/pop-up-window/11694>\
**Category:** flash\
**Created:** [January 21, 2003, 2:18am UTC](https://forum.kirupa.com/t/pop-up-window/11694 "2003-01-21T02:18:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deb](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@Deb](https://forum.kirupa.com/u/Deb)\
**Post date:** [January 21, 2003, 2:18am UTC](https://forum.kirupa.com/t/pop-up-window/11694/1 "2003-01-21T02:18:21Z")

</div>

I am trying to figure out to automatically launch a pop up window after the index.html launches. The index.html file has a whole flash site & I need to launch a pop up window to show another mini flash movie.

Any help would be appreciated. Trying to find a javascript to automatically call it but its not working.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 21, 2003, 2:23am UTC](https://forum.kirupa.com/t/pop-up-window/11694/2 "2003-01-21T02:23:02Z")

</div>

getURL(“jav\*\*ascript:window.open(‘page.html’,‘name’,‘height=300 width=200’);void(0);”);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 21, 2003, 2:32am UTC](https://forum.kirupa.com/t/pop-up-window/11694/3 "2003-01-21T02:32:17Z")

</div>

The code in my index.html file looks like this but I am getting an script error message.

script language=“JavaScript”  
getURL(“javascript:window.open(visorbeanie.html’,‘name’,‘height=300 width=200’);”);  
/script

I know I am doing something stupid been working at this to long today. I just want the visorbeanie.html to launch into a little window once the index.html launches

Thanks in advance for the help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 21, 2003, 2:39am UTC](https://forum.kirupa.com/t/pop-up-window/11694/4 "2003-01-21T02:39:42Z")

</div>

You are doing it wrong.

In flash you need to add that getURL to the first frame of your Flash movie.

But note: People with pop up window closers (which are many nowadays) will not be able to view your site, the pop up will get closed before it is even seen. Not to mention it is because many people hate pop ups, especially when they pop up automatically. Just a little note on the side.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 21, 2003, 2:42am UTC](https://forum.kirupa.com/t/pop-up-window/11694/5 "2003-01-21T02:42:38Z")

</div>

I was trying to avoid adding it in the movie. I thought I could call it with straight javascript in the html file.

Thanks. I will launch within the movie.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 21, 2003, 2:45am UTC](https://forum.kirupa.com/t/pop-up-window/11694/6 "2003-01-21T02:45:52Z")

</div>

Ok, I always screw myself when I don’t test code… but to do it strictly in JS… Put this between your head tags.

```php
<SCRIPT LANGUAGE="JavaScript">
<!--
onload = window.open('visorbeanie.html','name','height=300 width=200');
-->
</SCRIPT>

```

PS: Since this has nothing to do with Flash, I am moving it to the Server-Side/Scripting section.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 21, 2003, 4:12am UTC](https://forum.kirupa.com/t/pop-up-window/11694/7 "2003-01-21T04:12:11Z")

</div>

I forgot the void(0) in my first post (edited and fixed)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 21, 2003, 1:05pm UTC](https://forum.kirupa.com/t/pop-up-window/11694/8 "2003-01-21T13:05:46Z")

</div>

What is the method for preventing the user from maximising a pop up . I have set a pop up to be unresizable but it is still possible to maximise it. I have seen the maximise button masked over.

Any ideas guys or galls.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 21, 2003, 5:10pm UTC](https://forum.kirupa.com/t/pop-up-window/11694/9 "2003-01-21T17:10:38Z")

</div>

javascript:window.open(visorbeanie.html’,‘name’,‘height=300 width=200, resizable=0’)
