mirror of https://github.com/vitalif/phantomjs
commit
dbf3318fa1
|
@ -24,7 +24,7 @@ var page = webPage.create();
|
|||
page.open('http://www.phantomjs.org', function(status) {
|
||||
if (status === 200) {
|
||||
page.includeJs('http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', function() {
|
||||
if page.injectJs('do.js') {
|
||||
if (page.injectJs('do.js')) {
|
||||
var title = page.evaluate(function() {
|
||||
// returnTitle is a function loaded from our do.js file - see below
|
||||
return returnTitle();
|
||||
|
|
Loading…
Reference in New Issue