Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web page must delete itself

Status
Not open for further replies.

RichardJones

Programmer
May 31, 2002
3
ZA
Hi,

I need make a web page that will delete itself when the client unloads it, but I cannot get it to work.

Any help please.
 
Javascript cannot make web pages delete themselves. You'd have to do that with client-side scripting. Or did you mean you wanted the web page to close itself? If it'd the only browser window open, the viewer will get a message that the page wants to close the program, and they get to choose to allow that or not.
 
You probably wanted to prevent your page from being cached.
In order to do it add the following line to the <head> section:

<meta http-equiv=&quot;pragma&quot; content=&quot;no-cache&quot;>

good luck
 
no i really need the page to be deleted off the web server after it has been viewed.

It will be an automatically generated page made just for each request each time.
 
If you use a script to generate the page, then it will never actually be on the server, so won't need to be deleted. What do you use to generate the page?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top