31.10.2006, 18:09
общий
это ответ
Здравствуйте, chiefff!
Если это дочернее окно, то вот так (только вместо alert Вам надо сделать location.reload([true]):
(пример с сайта нетскейпа)
The following statements refer to a form named musicForm in a window named checkboxWin. The statements determine if a checkbox is checked, check the checkbox, determine if the second option of a Select object is selected, and select the second option of the Select object. Even though object values are changed in checkboxWin, the current window remains active: checking the checkbox and selecting the selection option do not give focus to the window.
// Determine if a checkbox is checkedif (checkboxWin.document.musicForm.checkbox2.checked) { alert(‘The checkbox on the musicForm in checkboxWin is checked!‘)}// Check the checkboxcheckboxWin.document.musicForm.checkbox2.checked=true// Determine if an option in a Select object is selectedif (checkboxWin.document.musicForm.musicTypes.options[1].selected) {alert(‘Option 1 is selected!‘)}// Select an option in a Select objectcheckboxWin.document.musicForm.musicTypes.selectedIndex=1