×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: mill martin
Added: Jul 24, 2014 6:09 PM
Views: 14
Tags: phantomjs
  1. Simple Javascript example
  2.  
  3. console.log('Loading a web page');
  4. var page = require('webpage').create();
  5. var url = 'http://www.phantomjs.org/';
  6. page.open(url, function (status) {
  7.   //Page is loaded!
  8.   phantom.exit();
  9. });
  10.