SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Pop up window code for closing
-
May 20, 2001, 14:09 #1
- 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
-
May 20, 2001, 16:09 #2
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?
-
May 21, 2001, 07:00 #3
- 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!!
-
May 21, 2001, 07:05 #4
- 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
-
May 21, 2001, 07:59 #5
- 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