If you use Dillo, with dilloc (from a git build, you need socket control support in the configure flag) and a menu command you can do it but not automatically.
Maybe w3m has some plugin to achieve the same too.
Also: https://farside.link