Is it somehow possible to add document.referrer
js variable right into the a tag like this?
<a href="document.referrer;">Zpět</a>
For purposes of code shortening so all the machinery <script> document.ready ..
doesn't have to be deployed.
EDIT:
For further clarification; I would prefer something like this to be avoided
<a href="#" id="return-back-one">Zpět</a>
<script>
$(function() {
var back = $('#return-back-one')
back.on("click", function(e){e.preventDefault();history.back(1)})
});
</script>
in favor of something shorter like
<a href="document.referrer;">Zpět</a>
or
<a href="history.back(1);">Zpět</a>