<script> var request = new XMLHttpRequest(); request.open('GET', 'test://test', false); request.send(null); window._testResult = request.responseText; </script>