Is there a way to write this in the fluid template?
<a onclick="history.back()">Back</a>
I have tried these options and they do not work:
<a onclick="history.back()">Back</a>
<f:format.raw><a onclick="history.back()">Back</a></f:format.raw>
<f:link.typolink parameter="1" additionalAttributes="{onclick: 'history.back()'}">Back</f:link.typolink>
All versions only result in the word “Back” or a link without an "onclick"
Is there a way to write this in the fluid template?
<a onclick="history.back()">Back</a>
I have tried these options and they do not work:
<a onclick="history.back()">Back</a>
<f:format.raw><a onclick="history.back()">Back</a></f:format.raw>
<f:link.typolink parameter="1" additionalAttributes="{onclick: 'history.back()'}">Back</f:link.typolink>
All versions only result in the word “Back” or a link without an "onclick"
Share Improve this question edited 2 days ago Lazinbee asked Feb 6 at 18:37 LazinbeeLazinbee 1811 silver badge8 bronze badges2 Answers
Reset to default 0Please try
<a href="javascript:history.back()">Go Back</a>
or
<a href="javascript:history.go(-3)">Go back to step X</a>
to go back several steps.
Demystifying JavaScript history.back() and history.go() methods
the problem occurs in all templates of the extension. as written there is nothing special, simply a list of fields that are output. even if I insert this
<f:link.typolink parameter="1" additionalAttributes="{onclick: 'history.back()'}">Back</f:link.typolink>
only a link without onclick comes out