|
function GetSelection(var){
window.opener.form.field.value = var]
window.close();
}
Wrong.
First of all, var is a keyword in javascript, so using a keyword as a variable name is a big nono. In fact, in my test code that I wrote to try to duplicate this problem, IE caught it and no javascript would work until I fixed the problem. So, if you are really using the keyword var as the name of a parameter to a function, don't. Bad idea.
"This works great in IE but Firefox just sits there and does nothing."
No, it doesn't work in IE. Maybe you have script debugging disabled or something, but if you are really using the keyword var as a parameter name, it doesn't work. Thats like using "if", "for", or "function" as a variable name.
|