php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "browser window"

What are the considerations when using client-side JavaScript for browser window detection and providing alternative solutions for users who have JavaScript disabled?

When using client-side JavaScript for browser window detection, it's important to consider that some users may have JavaScript disabled, which can lea...

What is the "expire" command to delete a cookie when the browser window is closed in PHP?

To delete a cookie when the browser window is closed in PHP, you can set the cookie's expiration time to 0, which will make the cookie expire when the...

What are the best practices for downloading a PDF file to view it on a Mac instead of in a browser window?

To download a PDF file to view it on a Mac instead of in a browser window, it is best practice to use the 'download' attribute in the anchor tag when...

What are the best practices for handling user actions, such as closing a browser window, in PHP applications?

When a user closes a browser window, the server has no way of knowing about it, which can lead to potential issues like incomplete transactions or unn...

Is it possible to execute a function in PHP when a user closes a browser window?

To execute a function in PHP when a user closes a browser window, you can use JavaScript's `onbeforeunload` event to trigger an AJAX call to a PHP scr...

Showing 36 to 40 of 8786 results

‹ 1 2 ... 5 6 7 8 9 10 11 ... 1757 1758 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.