The supplied {@code windowName} is used as the target name in awindow.open call in the client. This means that special values such as "_blank", "_self", "_top", "_parent" have special meaning. An empty or null
window name is also a special case.
"", null and "_self" as {@code windowName} all causes the URL to beopened in the current window, replacing any old contents. For downloadable content you should avoid "_self" as "_self" causes the client to skip rendering of any other changes as it considers them irrelevant (the page will be replaced by the response from the URL). This can speed up the opening of a URL, but it might also put the client side into an inconsistent state if the window content is not completely replaced e.g., if the URL is downloaded instead of displayed in the browser.
"_blank" as {@code windowName} causes the URL to always be opened in anew window or tab (depends on the browser and browser settings).
"_top" and "_parent" as {@code windowName} works as specified by the HTMLstandard.
Any other {@code windowName} will open the URL in a window with thatname, either by opening a new window/tab in the browser or by replacing the contents of an existing window with that name.
Please note that opening a popup window in this way may be blocked by the browser's popup-blocker because the new browser window is opened when processing a response from the server. To avoid this, you should instead use {@link Link} for opening the window because browsers are moreforgiving when the window is opened directly from a client-side click event.
@param url the URL to open. @param windowName the name of the window.
|
|
|
|
|
|
|
|