Here's a demo - the from page (call it anything you want):
Code:
<!DOCTYPE html>
<html>
<head>
<title>Loader</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<a href="loadintoiframe.htm?url=http%3A%2F%2Fwww.dynamicdrive.com%2F">A Page with DD in an iFrame</a>
</body>
</html>
The page that will perform this "miracle" (in this example, it should be saved as "loadintoiframe.htm"):
Code:
<!DOCTYPE html>
<html>
<head>
<title>Load Into iFrame</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<iframe name="targetframe" src="about:blank" width="300" height="300" scrolling="auto" frameborder="1"></iframe>
<script>
(function(){
var s = window.location.search, i, q;
s = s.split(/[\?&]/); i = s.length;
while(--i > -1){
q = s[i].split('=');
if(q[0] === 'url'){
window.frames.targetframe.location.replace(unescape(q[1]));
break;
}
}
})();
</script>
</body>
</html>
Though tested and works, it's just a rough idea off the top of my head from stuff I've seen before. Any questions, just let me know.
Bookmarks