Friday, February 21, 2014

Access dialogArguments property (window) in all browsers

Access dialogArguments property (window) in all browsers

function GetDialogArguments() {
var arguments;
if (window.dialogArguments) { // For IE
arguments = window.dialogArguments;
}
else { //For FF and Chrome
arguments = window.opener;
}
return arguments;
}