 <p>That's because the Javascript engine is built into your browser. CURL does not know what Javascript is.</p> <p>What you need to write is called a "shell script" that can be initiated with a cron task. </p>