I have a chat box in the bottom right of my website, that opens and closes no problem. It is hidden by default, and then when you click on "chat" it stays open! My problem is that I would want the chatbox to stay open when a user changes pages until they decide to minimize it again. At the moment, if you change pages the chatbox minimizes itself. Can someone help?
jQuery(document).ready(function() {
jQuery('#hideshow').on('click', function(event) {
jQuery('#initiallyHidden').toggle('show');
});
});
#chatbox {
position: fixed;
bottom: 0;
right: 0;
float: right;
}
#initiallyHidden {
bottom: 100;
right: 0;
float: right;
width: 300px;
height: 200px;
border-style: solid;
background-color: white;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div id="chatbox"><input type="button" id="hideshow" value="Quick Chat" class="tbox" />
<br>
<div id="initiallyHidden" style="display: none;">Content</div>
Above is the scripts all used for this.
Thanks