Close an open web object in new window.

Apr 06, 2018

I have built a calculator in storyline that I am opening in a web object in another course. So they can move it around the screen I am opening the web object as a new window. 

However if I open another instance of the calculator I get another new window calculator, and so on...

Is there a way to close the other calculators when the new one is created?

 

2 Replies
fbs 419

"I haven't tested this, but it should work."  It doesn't.  Because there doesn't seem to be a good way to use a WebObject for a dynamic URL, I just do a window.Open without a _self, so the website will open in a new window.  I disable the button to open the window after I've opened it, so you can't open multiple windowa.  But I wanted to know when the other window was closed, so I could enable the button again.  So I put a close button in that does a window.close and execute some javascript to close the window.  But it doesn't work.  It doesn't work with undeclared window handles, and it doesn't work with Articulate variables, although I don't know why it should because there is no Articulate variable type for a window handle.  Number doesn't work.  So it seems there is no way to close a window opened this way.  At least not via a different button.

This discussion is closed. You can start a new discussion or contact Articulate Support.