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

66
Views
Run a script after location is changed

I want to achieve something like this:

location.replace("some url");
alert("hello");

I know this won't work but it runs before the next page is loaded and onload doesn't seem to work either is there a way to achieve this?

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

0

So, I finally came to the conclusion that, it is not possible and thanks to @Terry for helping me understand why ( it is a security issue ).

But I got an alternative method for what I want to do. I will copy the website I wanted to run script on and I will host it in another site and I will change the address bar url to what I want by including a script to the site I cloned, hopefully no one notice.

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!