Geometry.js
var Geometry = {};
if (window.screenLeft) { // IE and others
Geometry.getWindowX = function() { return window.screenLeft; };
Geometry.getWindowY = function() { return window.screenTop; };
}
else if (window.screenX) { // Firefox and others
Geometry.getWindowX = function() { return window.screenX; };
Geometry.getWindowY = function() { return window.screenY; };
}
index.html
<body>
<script src="Geometry.js">
var o=new Geometry();
for(var cur in o)
document.write(cur+" = "+o[cur]+"<br>");
</script>
</body>
В чем проблема?Как получить объект Geometry?