closing browser window

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default closing browser window

    might be really silly.... but I know you can use behaviours to open browser windows... but can you make a button to close a browser window?
    BlondeGonk Guest

  2. Similar Questions and Discussions

    1. Self Closing Pop-Up Window?
      I'm building a bunch of video samples for my website using flash movies. They open in pop-up windows but when they are done playing the window...
    2. Closing "Open Browser Window" behind you
      If you visit www.scrubjay.com, you'll see a blank webpage with a link. Clicking on that link opens another small browser window. The small browser...
    3. closing pop-up window
      I have created a mail form in a pop-up window. After the mail has been send succesfull i would like the window to close (without having to click on...
    4. closing browser window from flash movie?
      Is there a way to close a browser window after the movie stops through AS? FayeC
    5. Closing browser window!?
      I knew how to do this at one time, but forgot. I searched the macromedia site, and I get a bunch of other stuff. How do I close the browser...
  3. #2

    Default Re: closing browser window

    Will only work on windows that were launched by the users click.

    TEXT
    <a href="javascript:;" onclick="top.close()">Close Window</a>

    IMAGE
    <a href="javascript:;" onclick="top.close()"><img src="image.gif" width="10"
    height="10"></a>

    The top is only necessary if the popup contains a frameset. If it doesn't
    you can use just the close().


    --
    Regards,
    ...Trent Pastrana
    [url]www.fourlevel.com[/url]

    Dreamweaver Designer Tools
    iFrameSuite | MiniMenus | Scroller Packages | More...
    -----------------------------



    "BlondeGonk" <webforumsuser@macromedia.com> wrote in message
    news:de26lt$p8f$1@forums.macromedia.com...
    > might be really silly.... but I know you can use behaviours to open
    > browser windows... but can you make a button to close a browser window?

    T.Pastrana - 4Level Guest

  4. #3

    Default closing browser window

    A very basic question... How do I apply a close browser window function to text. E.g 'Close window' - in regard to closing a pop up window from previous behaviour link?
    yagodabekiddinme Guest

  5. #4

    Default Re: closing browser window

    You can do this by enclosind the text in an <a> tag with the javascript to
    close the window as follows:

    <a href="javascript: window.close();"> close window </a>

    Not elegant, but I think it works.

    HTH

    Karen

    big_old_bird Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139