Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
26 lines (23 sloc) 0.635 kb
<!doctype html>
<html lang="en">
<title>JavaScript Patterns</title>
<meta charset="utf-8">
/* Title: Access to the Global Object
* Description: access the global object without hard-coding the identifier window
// access to the Global Object
// this should work in ES3, ES5 and ES5-strict.
var global = (function () {
return this || (1, eval)('this');
// Test Cases
// References
Jump to Line
Something went wrong with that request. Please try again.