How to use in jQuery data from window.open

Posted by Anton on Stack Overflow See other posts from Stack Overflow or by Anton
Published on 2010-03-24T21:38:33Z Indexed on 2010/03/24 21:43 UTC
Read the original article Hit count: 426

Filed under:
|
|

How to use in jQuery data from window.open

  w = window.open("http://google.com",
            'test_window',
            'left=20,top=20,width=500,height=500,toolbar=1,resizable=1');
  browser = w.document;  
  // execute commands in browser
  $(browser).ready(function(){
    alert($('input', browser).attr('name'));
  });
  // close browser
  w.close();

In this example I want to open new pop-up window, load Google page and get information about loaded page element (name of input filed).

I try to do this, but not found solution. Please, help me.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about web