WWW FAQ: How do I make a "link" that doesn't load a new page?


How do I make a "link" that doesn't load a new page?

Such links are useful when a form is intended to perform some action on the server machine without sending new information to the client, or when a user has clicked in an undefined area in an image map; these are just two possibilities.

A CGI script (see the CGI section) can accomplish this by outputting just the following:

Status: 204 No Content

Followed by two line feeds (ascii 10 decimal). The web browser will take no action.


World Wide Web FAQ