ACCESSING OBJECTS ANOTHER WINDOW JAVASCRIPT

How to access objects in another window using javascript

Example code for Accessing objects another window javascript:
<!--- accessing elements in a parent window --->
alert(opener.document.all.PrintersPulldown.selectedIndex)

<!--- general syntax: --->
opener.document.all.(elementID or NAME).(property or method)


=======================================================
<!--Cross-frame object accessing:-->

parent.frames[2].(object).(its property or method)

<!--example:-->
parent.frames[2].document.theimage.blur()

Aucun commentaire:

Enregistrer un commentaire