View Full Version : Allow members to browse other sites from within my site

04-07-2011, 09:33 PM

I would like members to be able to browse other websites from within my site.
I presume I would use an iframe.

But I was wondering if anyone know of a script I can just drop into my current code.

04-08-2011, 01:40 PM
pretty vague request but here:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jQuery web browser mumbo-jumbo-palooza</title>

<form action="" method="post">
<input type="text" name="url" id="url" style="width: 400px;">
<input type="button" id="submit" value="Blam! Go do your thing!">

<div id="browser" style="border: 1px solid #000; width: 600px; height: 500px; margin: 10px 0 0 0;"></div>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
$('#browser').html('<iframe src="http://'+ $('#url').val() +'" style="width: 600px; height: 500px;"><\/iframe>');