Re: PHP quit navigator
- From: bill <nobody@xxxxxxxxxxx>
- Date: Wed, 28 Feb 2007 08:45:18 -0500
Erwin Moller wrote:
Mike Roetgers wrote:besides, js can not close the last window.
sousimou@xxxxxxxxx schrieb:i want to create an application web by PHP.PHP is a server-side scripting language, so it can't close the browser
i want to create un command buttum whit must close de navigator
(internet explorer, mosilla, ...)
can you help me
on the client. You are looking for javascript.
I'm not really into this js-thing, but this should work:
OnClick="javascript:window.close()"
Good idea, but bad JS. (Well you told us you are not into it. :))
The 'javascript:' thingy is called pseudo protocol, and can be used in hyperlinks, allthough not advisable because the link will fail in JS challanged browsers.
When you use an eventhandler (like the onClick) the browser knows it is JS, so this is enough: OnClick="window.close();"
Regards,
Erwin Moller
bill
.
- References:
- PHP quit navigator
- From: sousimou
- Re: PHP quit navigator
- From: Mike Roetgers
- Re: PHP quit navigator
- From: Erwin Moller
- PHP quit navigator
- Prev by Date: change URL variables
- Next by Date: Re: drawing images and text
- Previous by thread: Re: PHP quit navigator
- Next by thread: Re: PHP quit navigator
- Index(es):