None of the above answers worked for me out of the box.
elinks though is the only one pretty much capable this is what I did:
sudo apt install libmozjs185-dev pkg-config libssl-dev
Very important to have installed
libssl-dev you cannot access HTTPS sites.
tar xvf elinks-current-0.13.tar.bz2
Result should be:
if result is
check the steps above until the right result is give.
Then make the sources
And install it:
sudo make install
Now enable and try it, by running:
Press Alt+S, O
Key down (↓) and then Space on
ECMAScript, Alt+E on
Enable change to
Alt+V to save and then OK