I need to make a condition like this: reload the page, If the page is reloaded, then we display the text. How do i do:

location.reload(); $(document).ready(function() { $("#result").append(html); }); 

    1 answer 1

    The problem can be solved, for example, in the following way: just before reloading the page, put a short-lived cookie, and in $ (document). Ready to check its presence and output / not display text by results.