# Open the chat widget instantly on page load

You can set the chat widget to open instantly on page load by setting
the OpenOnLoad configuration
[https://developers.collect.chat/#/initializing?id=collectchatconfigsettings] to
true.



For example:

<script>
var collectchat = window.collectchat || {};
collectchat.ready = function() {
    collectchat.config({
        openOnLoad:true
    });
}
</script>

Adding this to your webpage where the form snippet code is added will do the
trick.



Note



Your website visitors may not like the chat widget auto-opening always. So,
please be cautious and take feedback when you're using this functionality.