Hi

for some reason my script wont detect the opener window when the page is launched target blank from flash, but detects it fine when its launched from target blank html. of course this problem only exists in ie6 and 7. Does anyone have a fix, should I pass a variable from flash? thanks.

Hi cmills83,

Please show your code.

first page is just has a target blank link in the flash then the page that is opened has:

function swapWin(winLink) {
	if (window.opener != null && !window.opener.closed) {
		window.opener.location = winLink;
		window.opener.focus();
		}
	else {
		window.open(winLink, "newWindow");
	}
}

and called with

<a href="javascript:swapWin('http://www.google.com/');">link to brand site</a>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.