我尝试在火狐扩展中使用XMLHttpRequest进行"POST“,之后我尝试获取"Location”头并在新标签中打开它。由于某些原因,XMLHttpRequest不包含location标头。
我的代码
function web(url,request)
{
var http = new XMLHttpRequest();
http.open('POST',url,true);
http.setRequestHeader('Content-Type','application/x-www-form-urlenco
中声明javascript的时候叫什么?它不是外部的,也不是内联的……它被称为其他东西。那是什么?
<html>
<head>
<script type="text/javascript">
function message()
{
alert("This alert box was called with the onload event");
}
</script>
</head>
<body onload="message()">
</body>
<