diff --git a/frappe/www/message.html b/frappe/www/message.html
index a124983738..671489858e 100644
--- a/frappe/www/message.html
+++ b/frappe/www/message.html
@@ -40,6 +40,8 @@ html, body {
if(window.location.hash) {
localStorage.setItem('session_last_route', window.location.hash.substr(1));
}
+
+ $('.btn-primary').focus();
});
{% endblock %}