File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes window.opener.document.getElementById not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "window.opener.document.getElementById not working " Watch "window.opener.document.getElementById not working " New topic

window.opener.document.getElementById not working

M K Rayapudi
Ranch Hand

Joined: Feb 19, 2007
Posts: 160
Hi friends,
I am opening a pop-up window using (, there I am getting the values using window.opener
(where salutation is a text field in the form)
This is not working for first page/first time, but for other pages its working fine, for first page also next time onwards it is working.

Please help in this regard,
thank you

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15383
And what would the error message be?

M K Rayapudi
Ranch Hand

Joined: Feb 19, 2007
Posts: 160
thank you Eric.

Not getting any error messages.

For the first time/first page the value is not coming, for the next pages value is coming , if I navigate to the first page again then value is coming.
I agree. Here's the link:
subject: window.opener.document.getElementById not working