mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-24 16:31:39 +01:00
19 lines
469 B
HTML
19 lines
469 B
HTML
|
<html>
|
||
|
<body>
|
||
|
<script language="JavaScript">
|
||
|
function execXMLHttpRequest()
|
||
|
{
|
||
|
xhr = new XMLHttpRequest();
|
||
|
xhr.open("GET","request",false);
|
||
|
xhr.setRequestHeader('My-Custom-Header', 'Some Value');
|
||
|
xhr.send();
|
||
|
document.getElementById('ta').value = "Request\n\n"+xhr.responseText;
|
||
|
}
|
||
|
</script>
|
||
|
<form>
|
||
|
<input type="button" onclick="execXMLHttpRequest();" value="Execute XMLHttpRequest">
|
||
|
<br/><textarea rows="10" cols="40" id="ta"></textarea>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|