b.com has the "target="_blank" attribute. Clicking the hyperlink directly opens a new window. How to make the click hyperlink After linking, is it still displayed within the iframe? I tried In PHP, iframe refers to an external web page. The hyperlink of the external web page has _blank. How to click the hyperlink to prevent it from jumping out of the iframe?-PHP Chinese Network Q&A
In PHP, iframe refers to an external web page. The hyperlink of the external web page has _blank. How to click the hyperlink to prevent it from jumping out of the iframe?
白菜券大**
白菜券大** 2020-03-04 15:09:28
0
0
808

Webpage a

" _src="https://b.com/">">https://b. The hyperlink in com/">>

b.com has the "target="_blank" attribute. Clicking the hyperlink directly opens a new window. How to make it After clicking the hyperlink, it is still displayed within the iframe?

I tried

$url="https://b.com"

$html= file_get_contents($url);

$str = str_replace("_blank","_self",$html);

echo ''
?>

The iframe output like this is a whiteboard, echo $str directly, see I can't use it directly. Is there any way to solve this problem? I have searched in many places but can't find a solution. By the way, b.com is not mine, so I can't change the name

白菜券大**
白菜券大**

reply all (0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!