mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[mujs] global function alert, setTimeout, etc.
This commit is contained in:
parent
f0d5b3ad9c
commit
7f44731365
@ -407,5 +407,11 @@ mjs_window_init(js_State *J)
|
|||||||
}
|
}
|
||||||
js_defglobal(J, "window", JS_DONTENUM);
|
js_defglobal(J, "window", JS_DONTENUM);
|
||||||
|
|
||||||
|
js_dostring(J, "function alert(text) { return window.alert(text); }\n"
|
||||||
|
"function clearTimeout(h) { return window.clearTimeout(h); }\n"
|
||||||
|
"function open(a, b, c) { return window.open(a, b, c); }\n"
|
||||||
|
"function setTimeout(a, b) { return window.setTimeout(a, b); }\n"
|
||||||
|
"function toString() { return window.toString(); }\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user