Professional Web Applications Themes

closing browser window - Macromedia Dynamic HTML

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?...

Sponsored Links
  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?
    Sponsored Links
    BlondeGonk Guest

  2. #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" <webforumsusermacromedia.com> wrote in message
    news:de26lt$p8f$1forums.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

  3. #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

  4. #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

Similar Threads

  1. window not closing
    By gurvar in forum ASP.NET Building Controls
    Replies: 2
    Last Post: March 30th, 07:48 PM
  2. Self Closing Pop-Up Window?
    By videoned in forum Macromedia Flash Sitedesign
    Replies: 1
    Last Post: April 17th, 01:52 PM
  3. Closing "Open Browser Window" behind you
    By Virtual David in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: February 27th, 04:03 AM
  4. closing browser window from flash movie?
    By FayeC in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: January 28th, 07:30 PM
  5. Closing browser window!?
    By MadWebber in forum Macromedia Dreamweaver
    Replies: 3
    Last Post: July 20th, 07:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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