1 2 3 4
<!doctype html> <script> window.callDocumentMethod = methodName => document[methodName](); </script>