Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
Check if an HTML file is accessed directly or has been redirected

I have two HTML files: one.html and two.html

File *one.html refers to file one.js and file two.html refers file two.js.

Now, file one.js simply redirects to file two.html using windows.location of jQuery.

Is there a way to check within file two.js if file two.html was redirected from file one.js or it (file two.html) was accessed directly?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

document.referrer 

gives you the last page that the user has visited. You can use it to determine where the user came from.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!