Here I have code for showing an external page within my page (similar to iframe but I grab the source):
<?php
$url = 'http://www.kupime.com/';
$data = file_get_contents($url);
$data = '<head><base href='.$url.' target="_blank" /></head>'.$data;
echo $data;
?>
When I call the script, all is OK - but I can't close javascript window and can't see the content... the close link doesn't work. What is the problem? How to solve this?
UPDATE: or is there any function (JS or jquery) which will hide 'DIV' on right click on him. THANKS
Of course using
str_replace()
to make them invisible.Use this:
To avoid javascripts: