So I wrote a script in PHP that requires JavaScript to run with it. I've had a hard time finding the solution on how to run the JavaScript with PHP at the same time using some Linux tool to make it automatic (since running it in my browser isn't a choice, I need it to be a crontab). Using the php
command isn't a choice either since it does not run JavaScript. So I found a solution; it was Lynx.
So here is my problem: for some reason, the JavaScript runs in my browser just fine, but not in Lynx. Using Lynx the page just loads without any JavaScript involvement. Is there a way to debug JavaScript in Lynx, similar to what Google Chrome has where you can view what's going on from the console. What's causing the script not to run in Lynx?
Edit:
So apparently Lynx does not support JavaScript. In that case, my question is, what does? I need to run this script as a browser would but from the Linux command prompt. And if OS matters in this case, I am running the latest version Ubuntu.