diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js
index 5f572adbc..3e40ceb28 100644
--- a/IPython/html/static/notebook/js/notebook.js
+++ b/IPython/html/static/notebook/js/notebook.js
@@ -301,9 +301,8 @@ define(function (require) {
return "Unsaved changes will be lost.";
}
}
- // Null is the *only* return value that will make the browser not
- // pop up the "don't leave" dialog.
- return null;
+ // IE treats null as a string. Instead just return which will avoid the dialog.
+ return;
};
};