there's a submit button on a web page which triggers some javascript which displays some info in an alert window. is there anyway, having automatically accessed the web page with a php script for example, to somehow trigger the submit button and get the alert window's contents programatically?

thanks.