UnderZ

Javascript Library.

Execute some JavaScript code globally.

Execute JavaScript code within the global context.


Execute global code

_z.globaleval( code );

Returns: _z Function


Examples

<script>
function testFn() {
	_z.globaleval("var testVar = 123;");
}

// before execute testFn: testVar === undefined
testFn();
// after execute testFn: testVar == 123
</script>