close pop up

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sva0008
    New Member
    • Apr 2008
    • 19

    #1

    close pop up

    from a parent window im using this code to open a popup:

    [CODE=javascript]OpenWin = dhtmlwindow.ope n("CarrListPopU p", "iframe", "CarrListPopUp. asp?origin=<%=r equest.serverva riables("URL")% >&carrname=" + escape(field) + "&sType=" + escape(cType) + "&new=1", '::: Carrier List :::', 'width=850px,he ight=400px,left =10px,top=30px, resize=0,scroll ing=1');[/CODE]

    now i have a button on popup page to close popup:

    [HTML]<input type=button name="y" value="No" style="width=50 " onClick="window .close()"/>[/HTML]

    but i am not able to clse the pop up widow when i click that button.
    Last edited by gits; May 3 '08, 09:25 AM. Reason: added code tags
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    do you get any errors? what is the dhtmlwindow ... are you using any framework?

    kind regards

    Comment

    Working...