Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Window-creation/Run-BASIC/window-creation.basic
Normal file
17
Task/Window-creation/Run-BASIC/window-creation.basic
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
html "Close me!"
|
||||
button #c, "Close Me", [doExit]
|
||||
wait
|
||||
|
||||
' -----------------------------------------------------------------------------------
|
||||
' Get outta here. depending on how may layers you are into the window (history level)
|
||||
' If you are at the top level then close the window
|
||||
' ----------------------------------------------------------------------------------
|
||||
[doExit]
|
||||
html "<script language='javascript' type='text/javascript'>
|
||||
var a = history.length;
|
||||
a = a - 1;
|
||||
window.open('','_parent','');
|
||||
window.close();
|
||||
history.go(-a);
|
||||
</script>"
|
||||
wait
|
||||
Loading…
Add table
Add a link
Reference in a new issue