Drazek
Drazek

Reputation: 341

Reload page once after it's fully loaded with jquery

I would like that page is reloaded ONLY once, with jquery, but only if on page is specific form with unique ID, is that possible even?

Thanks!

Upvotes: 0

Views: 377

Answers (1)

Kees C. Bakker
Kees C. Bakker

Reputation: 33381

It can be done:

  1. Add a script to the $(document).ready to check for your form / "magic" ID
  2. If the condition is true check if document.referrer isn't yourself
  3. If so, reload.

Upvotes: 2

Related Questions