In a related thread that I started a few days ago, the problem was solved by means of using Dialogue Boxes. Vist the links below:
========================================
For Python:
========================================
For JavaScript (online experiments):