PureCode Software interview question

Implement a feature that dynamically updates content on a webpage without refreshing (AJAX or WebSockets).