If you want to make a button to do just that: \<button onclick="window.navigation.reload()"\>reload\</button\> (remove the backslashes)
However, executing that will result in the preview state as if the code was unmodified, so you’ll have to click on the “reload” button for the preview to reload with the modified code.
@ELPHANEIEJGUY Add
[window.navigation.reload()]
to the HTML or set it as a variable:reload = [window.navigation.reload(), ""] output [reload]
If you want to make a button to do just that:
\<button onclick="window.navigation.reload()"\>reload\</button\>
(remove the backslashes)However, executing that will result in the preview state as if the code was unmodified, so you’ll have to click on the “reload” button for the preview to reload with the modified code.
You can also do
location.reload()
:)