SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Non-Member spdrcr's Avatar
    Join Date
    Sep 2000
    Location
    Oklahoma City, OK
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I'm making a popup window for my church's site and I would like to add the close window code to it, but for the life of me can't figure it out. Can someone help me here

    Thanks!

    my church site

  2. #2
    SitePoint Zealot LunaC's Avatar
    Join Date
    Feb 2001
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've used this on my pop up to give a close button:

    <form>
    <input type=button value="Close Window" onClick="self.close()">
    </form>

    Is that what you meant?

  3. #3
    Non-Member spdrcr's Avatar
    Join Date
    Sep 2000
    Location
    Oklahoma City, OK
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that looks like what i was wanting...THANKS!!

  4. #4
    Non-Member spdrcr's Avatar
    Join Date
    Sep 2000
    Location
    Oklahoma City, OK
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I was mistaken. It's what i was wanting minus the button property

  5. #5
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    spdrcr...

    Which part of your site is being popped up? This would be simple to do as long as you are using Javascript to open the window to begin with. If you try to close a window that was opened with a normal HREF link, then you will get a message that pops up askign the user if they want to close the window.

    <a href="javascript:self.close();" >Close me</a>

    Of course you can also use an image for this button too. Just place the IMG tag inside the HREF tag just like normal.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


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
  •