# Send variable (POST) on popup window (javascript)

**URL:** <https://forum.kirupa.com/t/send-variable-post-on-popup-window-javascript/174414>\
**Category:** Uncategorized\
**Created:** [January 5, 2006, 3:17pm UTC](https://forum.kirupa.com/t/send-variable-post-on-popup-window-javascript/174414 "2006-01-05T15:17:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kangbayan](https://avatars.discourse-cdn.com/v4/letter/k/4da419/32.png) [@kangbayan](https://forum.kirupa.com/u/kangbayan)\
**Post date:** [January 5, 2006, 3:17pm UTC](https://forum.kirupa.com/t/send-variable-post-on-popup-window-javascript/174414/1 "2006-01-05T15:17:28Z")

</div>

I want to send variable from my flash file…

usually i used this script:

on (release) {  
getURL (“request.php”, “\_blank”, “POST”);  
}

but, now i want to remove MENU, ICON, ADDRESS, etc on my explorer…  
so i try to use this script:

on (release) {  
getURL (“javascript:openNewWindow(‘request.php’,‘popup’,‘width=450,height=335,toolbar=no,scrollbars=no’);”);  
}

and this on my html file:

\<script language=“JavaScript”\>  
function openNewWindow(URLtoOpen, windowName, windowFeatures) {  
newWindow=window.open(URLtoOpen, windowName, windowFeatures);  
}  
\</script\>

but, i don’t know how/where i can put “POST” method and “TARGET”…  
as i know getURL on flash have 3: URL, TARGET, METHOD

on (release) {  
getURL (“request.php”, “\_blank”, “POST”);  
}

anybody can help??? or have another way to do this???

thx b4
