Assuming the websites you are 'previewing' are on the same domain as your website, you can amend every a
tag within the loaded div
to perform an AJAX request with the following code:
var $container = $('#websitePreview')
$container.load('http://www.example.com'); // initial load
// link click within loaded content.
$container.on('click', 'a', function(e) {
e.preventDefault();
$container.load($(this).attr('href'));
});
On the other hand, if the previewed sites are on separate domains, you cannot load HTML from them due to the Same Origin Policy. An iframe
or CORS request is your only option in those situations, and if the url is 3rd party, the latter is extremely unlikely to happen.