Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to access parent window object using jquery?

How to acess parent window object using jquery?

This is my Parent window variable , I want to set its value after closing child window .

$('#serverMsg').html('some text here'); 
like image 694
Vicky Avatar asked Jan 30 '10 09:01

Vicky


People also ask

How to access parent element from iFrame jQuery?

To find in the parent of the iFrame use: $('#parentPrice', window. parent. document).

How to parent element in jQuery?

The parent() method returns the direct parent element of the selected element. The DOM tree: This method only traverse a single level up the DOM tree. To traverse all the way up to the document's root element (to return grandparents or other ancestors), use the parents() or the parentsUntil() method.

What is the use of parent () and child () method in jQuery?

It is a jQuery Selector used to select all elements that are the direct child of its parent element. Parameter Values: parent: Using this, the parent element will be selected. child: Using this, the direct child element of the specified parent element will be selected.

What is this parent parent in jQuery?

The parent() is an inbuilt method in jQuery which is used to find the parent element related to the selected element. This parent() method in jQuery traverse a single level up the selected element and return that element. Here selector is the selected elements whose parent need to find.


1 Answers

window.opener.$("#serverMsg") 
like image 145
roman Avatar answered Oct 05 '22 14:10

roman