I'm not even sure if this is possible, but can you open a new tab in a browser and close the current one using Javascript/JQuery?
I've got the following Javascript that operates a modal popup:
<!--//**********************************
// Test modal popup
//********************************** -->
<script type="text/javascript">
//Total out of range dialog
$(function () {
$("#dialog").dialog({
modal: true,
// autoOpen: false,
width: 570,
buttons: {
"Ok": function () { $(this).dialog("close"); },
"Cancel": function () {
$(this).dialog("close");
window.open('http://www.example.com/', '_blank');
}
}
});
});
What I'd like to do is close the current tab so that only the new tab is open. It doesn't seem like it's possible, but I figured I'd ask the experts here just to be sure.