12345678910111213141516 |
- runScript (function callback [, ... * args]) : {Promise -> *}
- Run a script inside this window (tab)
- Parameters:
- {function} callback : The script to run
- {*} ... args : Passed to the callback (optional)
- Returns:
- Resolves to the result of the callback
- let promise = w.runScript(function (arg1, arg2) {
- console.log(document.title);
- return 'result';
- }, 'arg1', 'arg2');
- # vim: ts=4 noet ai
|