#1
  1. No Profile Picture
    Willis Chang
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi,

    My problem is this. I've created a website for my company (www.maizeblue.com), and as required by its governing body, i am required to have viewers read a risk disclosure first before viewing anything. Therefore, i've had a popup window appear, and users simply close the window when they're done reading. Now, my boss wants me to put a button that will say "I agree to these terms and conditions". How do i make the button close the popup window? i've read that the javascript windowName.close()
    will do the trick. But i do not know how to incorporate it... i need help. Thank you.

    Willis
  2. #2
  3. No Profile Picture
    dahamsta
    Guest
    Devshed Newbie (0 - 499 posts)
    Use self.close()

    In context:

    Button:

    <form>
    <input type="button" onclick="self.close()" value="I Agree To These Terms And Conditions">
    </form>

    Link:

    <a href="javascript:self.close()">I Agree To These Terms And Conditions</a>

    adam
  4. #3
  5. No Profile Picture
    Willis Chang
    Guest
    Devshed Newbie (0 - 499 posts)
    Thanks Adam,

    Believe it or not, i found the answer out earlier today, about an hour after i posted the original plea for help. And the answer was in a combination of a previous post that you had almost 4 months ago, as well as something from htmlgoodies.com. But thank you. It works... =)

    Sincerely,
    Willis Chang

Similar Threads

  1. Refresh original page after closing popup window
    By lotus in forum HTML Programming
    Replies: 2
    Last Post: October 13th, 2003, 08:05 PM
  2. javascript popup window reusing from multiple openers?
    By sengoku in forum JavaScript Development
    Replies: 2
    Last Post: October 1st, 2003, 10:44 AM
  3. closing popup window from ie
    By rony in forum HTML Programming
    Replies: 2
    Last Post: July 28th, 2003, 04:51 PM
  4. Replies: 2
    Last Post: July 17th, 2003, 08:32 AM
  5. Replies: 1
    Last Post: May 7th, 2003, 03:49 PM

IMN logo majestic logo threadwatch logo seochat tools logo