Most modern browsers will prevent you from doing this. People don't like it when webpages just close their browser.
-Kevin- On Mon, Feb 23, 2009 at 7:34 PM, Scott Hill <[email protected]> wrote: > I want to have a button that I can click that will close the window (or > tab). I have tried document.close, window.close, and this.close. None > seems to work. Any ideas on how to do this. Right now I am using Firefox > but I need it to work on IE as well. > > Thanks, > > -- > Scott Hill > > "A wretched soul, bruised with adversity, > > We bid be quiet when we hear it cry; > > But we were burdened with like weight of pain, > > As much or more we should ourselves complain." > * > > William Shakespeare > * > > "Before God we are equally wise - and equally foolish." > * > > Albert Einstein > * > > "All paid jobs absorb and degrade the mind." > * > > Aristotle > * > > "A banker is a fellow who lends you his umbrella when the sun is shining, > > but wants it back the minute it begins to rain." > * > > Mark Twain > > > * > > _______________________________________________ > > UPHPU mailing list > [email protected] > http://uphpu.org/mailman/listinfo/uphpu > IRC: #uphpu on irc.freenode.net > _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
