swordfishsm
Technical User
I have a web application with frames. I have a simple function to remove some options from some select objects which are hidden.
function removeOptionSelected()
{
var elSel = document.getElementById('addressPersonTemp');
name = document.forms[0][pername].value
for (i = elSel.length - 1; i>=0; i--) {
if (elSel.options.value == name) {
elSel.remove(i);
}
}
}
When this function runs , the targets of the frames suddenly becomes a new window. Can anyone tell me why this might be happening ?
function removeOptionSelected()
{
var elSel = document.getElementById('addressPersonTemp');
name = document.forms[0][pername].value
for (i = elSel.length - 1; i>=0; i--) {
if (elSel.options.value == name) {
elSel.remove(i);
}
}
}
When this function runs , the targets of the frames suddenly becomes a new window. Can anyone tell me why this might be happening ?