Modal dialogues can't refer to their parent using opener. You need to pass a reference to the parent in the second parameter to showModalDialog:
Code:
var oArgs = {opener: self, action: "addNote"};
var returnValue = showModalDialog(u, oArgs, sFeatures)
then inside the dialogue window:
Code:
alert(window.dialogArguments.action);
alert(window.dialogArguments.opener.location.href);
--
Joe (
Microsoft MVP - XML)