Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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