a.htm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>a.htm</title>
<script type="text/javascript">
var xmlHttp=null;
//判断浏览器
function createXMLHttpRequest() {
if (window.XMLHttpRequest) {
//Firefox,Netscape,Chrome,Safari等浏览器
xmlHttp = new XMLHttpRequest();
} else if (window.ActiveXObject) { //IE浏览器
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); //创建xmlHttp对象
} catch (e) {
try {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); //创建xmlHttp对象
JavaScript获取iframe里面的src路径里面的内容
最新推荐文章于 2022-06-02 14:54:40 发布