I am trying to get the value of javascript pop-up after using file_get_contents
.
<?php
$word = 'delete';
$page_content = file_get_contents($url);
if(strstr($page_content, $word)):
$result = 'YES';
else:
$result = 'NO';
endif;
?>
my code detect if there is sepecific word in the page. However, it fails to get value on javascript pop-up.
Let's assume that there is a website which has a javascript pop-up.
file_get_contents($the_website_url)
will only get html data of the website.
I am trying to get javascript pop-up value too by using php script.
Is there a way to get javascript value of external web page?