wffweb/src/main/java/com/webfirmframework/wffweb/server/page/BrowserPage.java
public final void removeFromContext(final boolean enable, final On... ons) {
        for (final On on : ons) {
            if (On.TAB_CLOSE.equals(on)) {
                removeFromBrowserContextOnTabClose = enable;
            } else if (On.INIT_REMOVE_PREVIOUS.equals(on)) {
                removePrevFromBrowserContextOnTabInit = enable;
            }
        }
    }
public final void removeFromContext(final boolean enable, final On... ons) {
        for (final On on : ons) {
            if (On.TAB_CLOSE.equals(on)) {
                removeFromBrowserContextOnTabClose = enable;
            } else if (On.INIT_REMOVE_PREVIOUS.equals(on)) {
                removePrevFromBrowserContextOnTabInit = enable;
            }
        }
    }
By default On.TAB_CLOSE and On.INIT_REMOVE_PREVIOUS are enabled.

@param enable
@param ons
the instance of On to represent on which browser event
the browser page needs to be removed.
@since 2.1.4
@author WFF