I have the following assignment:
var o = (opener.opener) ? opener.opener.document.f1 : (opener) ? opener.document.f1 : "x";
When I browse directly to the page with the above I get the following:
'opener.opener' is null or not an object
I know it isn't an object. I thought I was testing for that with the above code. I thought the above would first look of opener.opener. If that existed, then the value of o would be opener.opener.document.f1, if not, then the code would check for the existence of opener. If found, then o would be assigned opener.document.f1. Finally, if neither opener.opener or opener exist, then o would equal "x".
What am I missing?