Results 1 to 2 of 2

Thread: Window widget, open new and close self

  1. #1
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Window widget, open new and close self

    1) Script Title: DHTML Window widget

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

    3) Describe problem: How to open new window from widget and then close widget.

    Hi,

    I'm opening a window (with this script) from my website. In the window is a question with 2 buttons, YES and NO. If NO the window should close. if YES an new website opens and the window it self closes.

    Just closing is not a problem, but I can't open a new website and closing the widget window. Also, I want to open the new website as it opens when you click a link with target="_blank" and not as a javascript popup.

    Below is an example of what I did, but this only shuts the window down.

    <a target="_blank" href="http://www.website.com" onClick="parent.googlewin.hide(); return false">

    //Thanks Bo

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Remove the onclick event handler, just to do the oposite:
    Code:
    <a target="_blank" href="http://www.website.com">
    - Mike

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
  •