Jump to content

[SOLVED] automatic close window


pikemsu28

Recommended Posts

is there a simple script to automatically close a browser after so long. i've found scripts that close a popup but this isn't a popup i want to close.  i have a task manager scheduled to load a php script that sends out an email and i want the browser to close without having to close the browser manually.

 

thanks,

Jason

Link to comment
Share on other sites

Add this in the head tag...

 

<META HTTP-EQUIV="Refresh" CONTENT="30;URL=javascript:self.close()">

 

Although this works, browsers may interpert this the wrong way and inform the user of an outside influence before colsing. Not recommended unless its a limited audience that you know. If you do use it, change the 30 which is this time in seconds. (not PHP, but javascript)

 

Best

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.