2021-01-31, 23:15:26
How about using some javascript to accomplish this:
name is a name of the window. Following names should be supported:
_blank - URL is loaded into a new tab. This is default.
_parent - URL is loaded into the parent frame
_self - URL replaces the current page
_top - URL replaces any framesets that may be loaded
If the browser pauzes this behavior with a popup then try something like this:
Code:
window.open('_link is here_', 'name');
name is a name of the window. Following names should be supported:
_blank - URL is loaded into a new tab. This is default.
_parent - URL is loaded into the parent frame
_self - URL replaces the current page
_top - URL replaces any framesets that may be loaded
If the browser pauzes this behavior with a popup then try something like this:
Code:
var win = window.open('http://stackoverflow.com/', '_blank');
if (win) {
//Browser has allowed it to be opened
win.focus();
} else {
//Browser has blocked it
alert('Please allow popups for this website');
}