diff --git a/src/static/js/html10n.js b/src/static/js/html10n.js
index c45f4b31b..b2c4e6195 100644
--- a/src/static/js/html10n.js
+++ b/src/static/js/html10n.js
@@ -883,7 +883,7 @@ window.html10n = (function(window, document, undefined) {
html10n.index()
}, false)
else if (window.attachEvent)
- document.attachEvent('onload', function() {
+ window.attachEvent('onload', function() {
html10n.index()
}, false)