diff --git a/silk/templates/silk/sql.html b/silk/templates/silk/sql.html
index ea21f0d2..1586c691 100644
--- a/silk/templates/silk/sql.html
+++ b/silk/templates/silk/sql.html
@@ -8,8 +8,13 @@
{% block js %}
{{ block.super }}
+ function openInNewTab(url) {
+ var win = window.open(url, '_blank');
+ win.focus();
+ }
{% endblock %}
+
{% block style %}