Skip to content
Create a gist now

Instantly share code, notes, and snippets.

phantomjs context
var page = require('webpage').create();
page.onConsoleMessage = function (msg) {
console.log('Page title is ' + msg);
};, function (status) {
//-= DOM is not accessible here...
page.evaluate(function () {
//-= DOM is accessible here, who knew?!? :O
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.