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

111
Views
Automatically close HTML page

I have a Php document where after executing a query it will need to close the page.

My problem is that I cannot close the page.

I tried using javascript window.close(); but that does not work.

I also tried using simulated key press(that is using control + w to close the tab) but was unsuccessful in making it work.

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

0

You can use

window.open('', '_self', '');
window.close();
about 4 years ago · Juan Pablo Isaza Report

0

I remembered this from a another post. javascript close current window

window.open('','_self').close()

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!