Button to close a popup
July 16, 2009 12:00 AM
You could also use an iFrame to open the external site in a lectora pop window. Make the iFrame slightly shorter than the popup window and put a nice fat Close window button at the bottom. The external site will show in your popup, and you have control over whether the main course is active or not as you are still using a page within your course.
The close window button action (Exit title/Close window) will close the window and put the learner back in your course.
If you are using web 2 style windows, the back course window will be inactive by default, if not, you can use some programming to disable the main course window.
hapgoods said:Here's the scenario, I have 2 buttons, one opens a popup, then other closes the popup. I'd swear that I did this once upon a time, but can't seem to remember how I did it. Here's what I've tried. Button_1 1-goto web address 2-open in new window 3-set the Window Name to myWindow Button_2 1- goto Web Address 2- Web Address = javascript: myWindow.close() The popup opens fins, but Button_2 thorws a JS error 'myWindow' is undefined. Anyone help me remember what to do? Thanks, Scott
Discussions have been disabled for this post