Hi guys,
Wanna OPEN a Tab in Chrome - then CLOSE the same Tab
They say it is possible here:
You can only close windows/tabs that you create yourself. That is, you cannot programmatically close a window/tab that the user creates.
For example, if you create a window with window.open() you can close it with window.close().
<scriptsrc="~/Scripts/jquery-1.8.2.js"></script><script>var win;
$(document).ready(function(){var url ='this tab url';
win = window.open(url,'_self');
window.stop();});function closeWindow(){
win.close();}</script>
Then in html
<ahref="javascript:closeWindow();">close</a>
If there are multiple tusk to load then wait some times by this
setTimeout(function(){//do something special//window.stop(); },5000);
Can some kind soul tell me how to morph this Javascript into B4A?
Thank you so much!
Wanna OPEN a Tab in Chrome - then CLOSE the same Tab
They say it is possible here:
You can only close windows/tabs that you create yourself. That is, you cannot programmatically close a window/tab that the user creates.
For example, if you create a window with window.open() you can close it with window.close().
<scriptsrc="~/Scripts/jquery-1.8.2.js"></script><script>var win;
$(document).ready(function(){var url ='this tab url';
win = window.open(url,'_self');
window.stop();});function closeWindow(){
win.close();}</script>
Then in html
<ahref="javascript:closeWindow();">close</a>
If there are multiple tusk to load then wait some times by this
setTimeout(function(){//do something special//window.stop(); },5000);
Can some kind soul tell me how to morph this Javascript into B4A?
Thank you so much!