I have webpage1.html which has a hyperlink whose href="http://stackoverflow.com/questions/2013266/some/javascript/function/outputLink()"Now, using curl (or any other method in php) how do I deduce the hyperlink (of http:// format) from the javascript function() so that I can go to next page.Thanks