Close parent window from a frame without Java

Ask a Question related to Macromedia Dreamweaver, Design and Development.

  1. #1

    Default Close parent window from a frame without Java

    I want to use a hyperlink to close the parent window (and all frames it contains) without using java. I don't want the pop-up window appearing that using "javascript:parent.close()" causes. Any ideas?

    Thanks
    Frank


    frank griffin webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Close a pop-up, and refresh it's parent window
      I would like to replace the CFLocation tag in this block of code, and have it instead: Generate an alert box to close the window, and refresh the...
    2. close my project that is in a browser window (close this window)
      How can I do this with a button? What do I have to put into button?
    3. can a popup window return data to parent window?
      Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user...
    4. refresh parent window on close showModalDialog?
      Is it possible to make the parent window refresh when a modal dialog is closed? I know I can use window.opener.location.reload(true); for a...
    5. Refresh Parent window from child window causes problems
      Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence...
  3. #2

    Default Re: Close parent window from a frame without Java

    Yes, I meant Javascript not Java. :>)

    I have found that I can close the current frame without javascript but I can't seem to close the parent. I hate that little popup! Is there a way to "null" it?

    Thanks
    Frank



    frank griffin webforumsuser@macromedia.com Guest

  4. #3

    Default Re: Close parent window from a frame without Java

    frank:

    It's a system message. You will not get it on windows that *you* open
    programatically, but without javascript, there is no way that I know of to
    eliminate it on pages that you have not opened.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "frank griffin" <webforumsuser@macromedia.com> wrote in message
    news:bg43mp$fiu$1@forums.macromedia.com...
    > Yes, I meant Javascript not Java. :>)
    >
    > I have found that I can close the current frame without javascript but I
    can't seem to close the parent. I hate that little popup! Is there a way to
    "null" it?
    >
    > Thanks
    > Frank
    >
    >

    Murray *TMM* Guest

  5. #4

    Default Re: Close parent window from a frame without Java

    On Mon, 28 Jul 2003 21:14:01 +0000 (UTC), "frank griffin"
    [email]webforumsuser@macromedia.com[/email] wrote:
    >I have found that I can close the current frame without javascript
    >but I can't seem to close the parent. I hate that little popup! Is
    >there a way to "null" it?
    Not if you didn't open it and it would be extremely rude to do so.
    Think of the poor sap who finds your site via a search engine and,
    when he arrives, you open your custom window, close his original
    window and your site isn't what he was looking for. Now he's stuck in
    your popup. Extremely rude.


    Gary
    Gary White Guest

  6. #5

    Default Re: Close parent window from a frame without Java

    You can use JS and trick the window to avoid that alert box.
    Try this:
    opener.opener = top;
    opener.close();

    Won't work with all the browsers though...

    Check on [url]www.macromedia.com[/url] you'll find the original script.

    HTH,

    --
    Thierry
    [url]http://www.MadCoWWWebDesign.com/go/quizz.htm[/url] | Frames Quiz
    The link below is for IE5+/Win32/1024+ users *only*.
    [url]http://www.MadCoWWWebDesign.com/go/?2[/url] | Frames Tutorial



    --
    Thierry
    [url]http://www.MadCoWWWebDesign.com/go/quizz.htm[/url] | Frames Quiz
    The link below is for IE5+/Win32/1024+ users *only*.
    [url]http://www.MadCoWWWebDesign.com/go/?2[/url] | Frames Tutorial

    "frank griffin" <webforumsuser@macromedia.com> wrote in message
    news:bg43mp$fiu$1@forums.macromedia.com...
    > Yes, I meant Javascript not Java. :>)
    >
    > I have found that I can close the current frame without javascript but I
    can't seem to close the parent. I hate that little popup! Is there a way to
    "null" it?
    >
    > Thanks
    > Frank
    >
    >

    Thierry Koblentz Guest

  7. #6

    Default Re: Close parent window from a frame without Java

    On Mon, 28 Jul 2003 18:41:50 -0700, "Thierry Koblentz"
    <thierry@remove.212Utah.com> wrote:
    >You can use JS and trick the window to avoid that alert box.
    >Try this:
    >opener.opener = top;
    >opener.close();
    And if someone did that to me, I'd wish I had the knowledge to hack
    into their site and deface it. or at least remove the obnoxious
    script. <sigh>


    Gary
    Gary White Guest

  8. #7

    Default Re: Close parent window from a frame without Java

    Of course, that's not the answer because the question was how to do it
    without 'Java'. I guess the answer is that there is no way to do so, no?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Thierry Koblentz" <thierry@remove.212Utah.com> wrote in message
    news:bg51og$m5g$1@forums.macromedia.com...
    > Hi Gary,
    > I totally agree with you but on the other hand I think it's good to give
    the
    > answer with the advice.
    > Going the other way, we'll soon stop posting scripts to open fullscreen,
    > resize windows, create frames, etc.
    > ;ç)
    >
    > --
    > Thierry
    > [url]http://www.MadCoWWWebDesign.com/go/quizz.htm[/url] | Frames Quiz
    > The link below is for IE5+/Win32/1024+ users *only*.
    > [url]http://www.MadCoWWWebDesign.com/go/?2[/url] | Frames Tutorial
    >
    >
    > "Gary White" <reply@newsgroup.please> wrote in message
    > news:fktbiv8eqsth7a7kl1784tkgmcdifi0gfb@4ax.com...
    > > On Mon, 28 Jul 2003 18:41:50 -0700, "Thierry Koblentz"
    > > <thierry@remove.212Utah.com> wrote:
    > >
    > > >You can use JS and trick the window to avoid that alert box.
    > > >Try this:
    > > >opener.opener = top;
    > > >opener.close();
    > >
    > > And if someone did that to me, I'd wish I had the knowledge to hack
    > > into their site and deface it. or at least remove the obnoxious
    > > script. <sigh>
    > >
    > >
    > > Gary
    >
    >

    Murray *TMM* Guest

  9. #8

    Default Re: Close parent window from a frame without Java

    On Mon, 28 Jul 2003 22:46:16 -0700, "Thierry Koblentz"
    <thierry@remove.212Utah.com> wrote:
    >I totally agree with you but on the other hand I think it's good to give the
    >answer with the advice.
    You're probably right. And with my limited skills, the worst I could
    do when encountering something like that would be to write a complaint
    to the site owner. <sigh>

    >Going the other way, we'll soon stop posting scripts to open fullscreen,
    >resize windows, create frames, etc.
    Hmmm... and the problem with that? <gg>


    Gary
    Gary White 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