我尝试将网页内容加载到div: -
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="http://j.maxmind.com/app/geoip.js" ></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
function load(){
var location = "http://services.gisgraphy.com/geoloc/search?lat=43.00034713745117&lng=-75.4999008178711&radius=7000";
$("#siteloader").html('<object data="'+location+'">');
}
</script>
<body onload="load()">
<div id="siteloader"></div>
</body>
</head>
</html>
使用此代码将网页内容加载到div现在我想将此内容存储到一个variable
任何想法如何可能....