Results 1 to 3 of 3

Thread: dhtmlwindow - iframe closing window and changing parent window

  1. #1
    Join Date
    Sep 2007
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default dhtmlwindow - iframe closing window and changing parent window

    1) Script Title: DHTML Window widget

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/index.htm

    3) Describe problem: it's fairly similar to this one http://www.dynamicdrive.com/forums/s...me%3D%27bobo_1

    I've a window which I want to open an iframe with - but there's a contact us link, when people click on that, I'd like to close the widget window and alter the parent page so that it's got the details described in the link.

    Here's the main page (about half way down the page in bold in the first table) - which opens the widget and the further info link on the widget window is at the bottom. The links are in bold.

    Rather than opening the google window in the parent window below and closing the widget window, it opens google in the widget.

    I'm new to all this so I'm sure it's me doing something daft. Any suggestions would be gratefully received.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    For links inside the DHTML Window (iframe launched), you can simply get them a target attribute of _top to get them to open back in the parent window:

    Code:
    <a href="http://cnn.com" target="_top">CNN</a>

  3. The Following 2 Users Say Thank You to ddadmin For This Useful Post:

    georgie_b (03-09-2008)

  4. #3
    Join Date
    Sep 2007
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Fantastic, thanks!

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
  •