how to close popup windows see my script

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

  1. #1

    Default how to close popup windows see my script

    Hi all can I get some help to put a close button or text to close this popup
    window.

    Thank you
    leecsone


    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
    i++)
    if (a.indexOf("#")!=0){ d.MM_p=new Image; d.MM_p.src=a;}}
    }

    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>
    </HEAD>
    <BODY
    onLoad="MM_preloadImages('file:///C|/Documents%20and%20Settings/Eddie%20Fitzgera
    ld/Desktop/Desktop/store/Drop%20Shipper/leecsone%20online%20store1/Free%20Templa
    te%20from%20Interspire_com_files/34779.jpeg')">

    leecsone1 Guest

  2. Similar Questions and Discussions

    1. Flash Player popup does not close
      HTML page is poping up a swf file created in Captivate. The swf file play properly. The "Close Movie" command does not close the popup window.
    2. close php script once run from Flash
      Hi, Anyones help on this would be much appreciated. I have a php script as follows: <?php $userScore = strip_tags(trim($_POST));...
    3. Movieclip And Popup Close Self
      I have loaded a <mx:loader > in action script and made the returned flash movie clip a popup using createpopup, this flash movie clip has a close...
    4. How to return a keyvalue from popup windows with datagrid control to parent windows through JavaScript?
      How to return a keyvalue from popup windows with datagrid control to parent windows through JavaScript?
    5. how to close popup and open new main page
      Our page, Order.htm, has a link on it to PartNum.htm which is a popup reference list. On PartNum.htm the user can scroll the list but also can...
  3. #2

    Default Re: how to close popup windows see my script

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

    This uses text "Close" on screen. You can attach the window.close() to any
    button. If the Pop Up window is visable on the screen it will close that window
    but if you use this function on the primary window a dialog boox will appear
    asking if the users wants to close the window.

    socalfish Guest

  4. #3

    Default Re: how to close popup windows see my script

    Thank you for the script . This will close the main window. Where do I put the script to close th pop up window. I tryed to put inside the body tag but this did not work.

    Thank you
    leecsone
    leecsone1 Guest

  5. #4

    Default Re: how to close popup windows see my script

    It would go between <body> and </body> in the page being popped-up.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "leecsone1" <leecsone@comcast.net> wrote in message
    news:e20is9$ap2$1@forums.macromedia.com...
    > Thank you for the script . This will close the main window. Where do I put
    > the script to close th pop up window. I tryed to put inside the body tag
    > but this did not work.
    >
    > Thank you
    > leecsone

    Murray *ACE* Guest

  6. #5

    Default Re: how to close popup windows see my script

    Thank you , but I have a photo that when I press it a pop up window opens. I
    want to close that pop up window with the word close not a button.

    Thank you
    Eddie

    leecsone1 Guest

  7. #6

    Default Re: how to close popup windows see my script

    <body>
    <p><a href="javascript:;">Close this</a></p>
    </body>

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "leecsone1" <leecsone@comcast.net> wrote in message
    news:e20prr$jcg$1@forums.macromedia.com...
    > Thank you , but I have a photo that when I press it a pop up window opens.
    > I
    > want to close that pop up window with the word close not a button.
    >
    > Thank you
    > Eddie
    >

    Murray *ACE* Guest

  8. #7

    Default Re: how to close popup windows see my script

    I am Sorry But I am not gettig this here is my script where do I put the close
    script.

    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>
    </head>

    <body>
    <a href="javascript:;"
    onClick="MM_openBrWindow('file:///C|/Documents%20and%20Settings/Eddie%20Fitzgera
    ld/Desktop/Desktop/store/Drop%20Shipper/leecsone%20online%20store1/34779.jpeg','
    ','width=150,height=150')"><img
    src="file:///C|/Documents%20and%20Settings/Eddie%20Fitzgerald/Desktop/Desktop/st
    ore/Drop%20Shipper/leecsone%20online%20store1/27366.gif" width="150"
    height="150" border="0"></a>
    </body>

    Thank you
    Edie

    leecsone1 Guest

  9. #8

    Default Re: how to close popup windows see my script

    You put it in the page that is being opened in the pop-up.

    However, since you are NOT opening a page, but rather a JPG image, then you
    cannot do it -

    'file:///C|/Documents%20and%20Settings/Eddie%20Fitzgerald/Desktop/Desktop/store/Drop%20Shipper/leecsone%20online%20store1/34779.jpeg'

    (that link is broken, by the way)

    To do something like this, you would have to create a new page, place the
    image on it, and open THAT HTML page, not the JPG image.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "leecsone1" <leecsone@comcast.net> wrote in message
    news:e20shi$mk2$1@forums.macromedia.com...
    >I am Sorry But I am not gettig this here is my script where do I put the
    >close
    > script.
    >
    > <script language="JavaScript" type="text/JavaScript">
    > <!--
    > function MM_openBrWindow(theURL,winName,features) { //v2.0
    > window.open(theURL,winName,features);
    > }
    > //-->
    > </script>
    > </head>
    >
    > <body>
    > <a href="javascript:;"
    > onClick="MM_openBrWindow('file:///C|/Documents%20and%20Settings/Eddie%20Fitzgera
    > ld/Desktop/Desktop/store/Drop%20Shipper/leecsone%20online%20store1/34779.jpeg','
    > ','width=150,height=150')"><img
    > src="file:///C|/Documents%20and%20Settings/Eddie%20Fitzgerald/Desktop/Desktop/st
    > ore/Drop%20Shipper/leecsone%20online%20store1/27366.gif" width="150"
    > height="150" border="0"></a>
    > </body>
    >
    > Thank you
    > Edie
    >

    Murray *ACE* 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