This website requires JavaScript.
Explore
Help
Sign In
ariya
/
phantomjs
Watch
1
Star
1
Fork
0
You've already forked phantomjs
mirror of
https://github.com/ariya/phantomjs.git
synced
2024-09-11 04:46:09 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
master
phantomjs
/
examples
/
hello.js
4 lines
60 B
JavaScript
Raw
Permalink
Normal View
History
Unescape
Escape
Add "use strict"; declaration to all example scripts. modernizr.js is not modified because it's not our code. En passant fixes: * Delete two scripts that depended on a Yahoo service that appears no longer to exist. * The PhantomJS website no longer has a leading www. * One script needed correction to *work* in strict mode. * One script would only exit if a page loaded successfully. (There may be other instances of this problem, this is the one I noticed.)
2015-04-10 10:51:00 +03:00
"use strict"
;
Remove phantom.log, just use the de-facto console.log for logging.
2011-01-01 07:10:34 +03:00
console
.
log
(
'Hello, world!'
)
;
hello.js: the simplest PhantomJS example.
2010-12-27 09:15:02 +03:00
phantom
.
exit
(
)
;
Reference in New Issue
Copy Permalink