Click On Tyler Support


Contact Us

Support Home » VirtualHostX » What is AutoRefresh

What is AutoRefresh

AutoRefresh is a feature in VirtualHostX 7.0 and newer that monitors your virtual host's website folder. Whenever it detects a change inside that folder, VirtualHostX will automatically refresh your web browser. It's a magical way to speed up your workflow when building a website. There's no longer a need to save your changes, flip to your browser, and manually refresh. It all happens automatically now.

To enable AutoRefresh on your website, just paste AutoRefresh JavaScript that VirtualHostX provides into your HTML.

Here's a copy of the JavaScript VHX gives you...

    <script type="text/javascript">
        var connection = new WebSocket('ws://localhost:62183');
        connection.onmessage = function (e) {
            location.reload();
        };
    </script>
Your vote was sent, thanks!
Was this article helpful?







Search

Contact Us