
November 4th, 2001, 03:38 PM
|
|
Senior Citizen
|
|
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019
Time spent in forums: < 1 sec
Reputation Power: 15
|
|
|
Form values are strings; adding strings concatenates them. Try this:
var addTotal = 0;
function updateParent(partAmt) {
addTotal += partAmt;
opener.document.transact.tot_pay.value = addTotal;
}
<input type="text" name="cc_amount" onBlur="updateParent(eval(this.value))">
Might as well pass the number (eval()ed field value) since that's what your function needs.
|