Edit in JSFiddle
JavaScript
Result
function f() { return this; } document.write(window.f()); //[object Window]