JS loop web page elements, manual trigger events
for
(i
=
0
i
<
Document.all.tags
"
INPUT
"
) .length; i
) {
IF
(Document.All.tags
"
INPUT
"
[i] .type
==
"
Checkbox
"
) {
IF
(SELECTED)
&&&&
!
Document.all.tags
"
INPUT
"
[i] .checked) docuument.all.tags (
"
INPUT
"
) [i] .click ();
Else
IF
(
!
SELECTED
&&&&
Document.all.tags
"
INPUT
"
[i] .checked) docuument.all.tags (
"
INPUT
"
) [i] .click ();}}
Choose the HTML element via Document.all.Tags so that you can traverse all the elements you want to find through loop.