A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Exit Window Button?

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    3
    How do i make a button, that when clicked, exits the current open window?

  2. #2
    Senior Member
    Join Date
    Mar 2002
    Posts
    116
    The easiest way is to make a link like this :
    < A HREF="javascript:window.close( );" TARGET="_self" >Click Here To Close This Window< /A >

    You could also put the code in the onClick of a button, or put an image inside of the link.

  3. #3
    Senior Member Knoj's Avatar
    Join Date
    Sep 2000
    Location
    Ames IA
    Posts
    361
    If you were wanting to do that in flash, you would put this in the GetURL javascript:self.close();void(0);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center