This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > February 2006 > Coding? for buttons





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Coding? for buttons
Kzehner1

2006-02-28, 6:21 pm

I have a page that has an "accept" or "not accept" button on it. I have no
problem w/ the accept button; when they click it then they go to a new page.

On the "not accept" button, when they click the button, I would like for the
browser to close the page.
How would I code that? I can get it to go to a different page, but I cannot
figure out how to close the browser.

I appreciate any tutorials or directions you can pass my way.
Thank so much...

twocans

2006-02-28, 6:21 pm

Hi yea,
i far as I know this wil only work on a pop up window


<input type="button" value="Close Window" onclick="window.close()">








"Kzehner1" <webforumsuser@macromedia.com> wrote in message
news:du26p8$cpe$1@forums.macromedia.com...
>I have a page that has an "accept" or "not accept" button on it. I have no
> problem w/ the accept button; when they click it then they go to a new
> page.
>
> On the "not accept" button, when they click the button, I would like for
> the
> browser to close the page.
> How would I code that? I can get it to go to a different page, but I
> cannot
> figure out how to close the browser.
>
> I appreciate any tutorials or directions you can pass my way.
> Thank so much...
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews