opener property

WindowBase? opener
override

A reference to the window that opened this one.

Window thisWindow = window;
WindowBase otherWindow = thisWindow.open('http://www.example.com/', 'foo');
print(otherWindow.opener == thisWindow); // 'true'

Implementation

WindowBase? get opener => _convertNativeToDart_Window(this._get_opener);
void opener= (WindowBase? value)

Implementation

set opener(WindowBase? value) native;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/Window/opener.html