I have a button which links to a script for a chat room that is being displayed within a modal popup. The problem I'm having is that the script brings up a query box for the user to choose a name to log into the chat room; and it is doing this even before the page loads, long before clicking on the button! Since the button is in the header, it is doing this on every page. How can I get it to trigger only when the button for the chat room is pressed? The script is within it's own directory, so I can't understand why it is loading before the page has loaded.
I have a button which links to a script for a chat room that is being displayed within a modal popup. The problem I'm having is that the script brings up a query box for the user to choose a name to log into the chat room; and it is doing this even before the page loads, long before clicking on the button! Since the button is in the header, it is doing this on every page. How can I get it to trigger only when the button for the chat room is pressed? The script is within it's own directory, so I can't understand why it is loading before the page has loaded.Last edited 24 August 2021 by Lynn