# Resize window

**URL:** <https://forum.kirupa.com/t/resize-window/33653>\
**Category:** Uncategorized\
**Created:** [October 22, 2003, 1:16am UTC](https://forum.kirupa.com/t/resize-window/33653 "2003-10-22T01:16:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![macneilslt](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@macneilslt](https://forum.kirupa.com/u/macneilslt)\
**Post date:** [October 22, 2003, 1:16am UTC](https://forum.kirupa.com/t/resize-window/33653/1 "2003-10-22T01:16:16Z")

</div>

okay, i’m adding a contact form on my flash site, using brave net, because i’m to poor to pay for service that supports php.  
so, what i have is a contact button on m flash site, that opens a new window with the form on it,  
what i want to do is resize the window, so its not a full window,  
how can i do it with java script?

there is no html for the page that has the contact button, so i don’t know how to resize the new window,  
anyone know what to do?

---

<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:** [October 22, 2003, 1:18am UTC](https://forum.kirupa.com/t/resize-window/33653/2 "2003-10-22T01:18:55Z")

</div>

You can use this tutorial, the size of the window is specified in flash so there’s no need to edit any HTML.

[http://www.kirupa.com/developer/mx/centered\_popup.htm](http://www.kirupa.com/developer/mx/centered_popup.htm)

---

<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:** [October 22, 2003, 1:27am UTC](https://forum.kirupa.com/t/resize-window/33653/3 "2003-10-22T01:27:08Z")

</div>

thanks EG

---

<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:** [October 22, 2003, 1:50am UTC](https://forum.kirupa.com/t/resize-window/33653/4 "2003-10-22T01:50:43Z")

</div>

well i tried that, and i followed everything exactly, but when i click the submit button, nothing happens,

i added the .fla, although i’m pretty sure its right.

---

<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:** [October 22, 2003, 2:07am UTC](https://forum.kirupa.com/t/resize-window/33653/5 "2003-10-22T02:07:56Z")

</div>

This is what you have on your button.

```auto
on (release) {
	//customize the window that gets opened
	// 0 equals NO.
	// 1 equals YES.
	address = "http://www.geocities.com/falloutbmx/contact.html";
	target_winName = "submit an article";
	width = 400;
	height = 400;
	toolbar = 0;
	location = 0;
	directories = 0;
	status = 0;
	menubar = 0;
	scrollbars = 1;
	resizable = 0;
	openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}

```

You need to replace the spaces in winName or add underscores so that it looks like this:

```auto
on (release) {
	//customize the window that gets opened
	// 0 equals NO.
	// 1 equals YES.
	address = "http://www.geocities.com/falloutbmx/contact.html";
	target_winName = "submit_an_article";
	width = 400;
	height = 400;
	toolbar = 0;
	location = 0;
	directories = 0;
	status = 0;
	menubar = 0;
	scrollbars = 1;
	resizable = 0;
	openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}

```

You also need to test the movie in html for the popup to work, it won’t work if you’re testing it in flash.

---

<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:** [October 22, 2003, 2:18am UTC](https://forum.kirupa.com/t/resize-window/33653/6 "2003-10-22T02:18:36Z")

</div>

okay, i didn’t know that you couldn’t use spaces, everything works perfectly now, thank you for your time/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:** [October 22, 2003, 2:19am UTC](https://forum.kirupa.com/t/resize-window/33653/7 "2003-10-22T02:19:09Z")

</div>

no problem. =)
