Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

does "window.open" support variables in the target URL?

Status
Not open for further replies.

macmonteiro

Programmer
Oct 24, 2002
35
BR
Hulla!
Guess what? I'm in trouble with JS again...

I need to open a popup window that receives some values, adds one more and passes them away to PHP.

When we dealing with frames it was simple. Just used:

//parent.frm_name.location="pro_inclu.php?pro_item=E&pma_des="+form.pro_cust.value

and so on...

But now I'd need to do it in a new window. I know it must be very simple, don't mock me, would anyone help me?
 
just do this :
Code:
var url="pro_inclu.php?pro_item=E&pma_des=" + form.pro_cust.value;
window.open(url,...);
Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top