Reply
What code to close a link?
Old 05-21-2006, 09:14 AM What code to close a link?
Novice Talker

Posts: 12
Hi everyone,
Hope you all had a great weekend!

One question please...

From my product page, I added a link for some more info that opens to another page but open to a new window, how do you add a 'close" link so the customer can close that instead of "x" it.
Some customers don't even noticed that they have already opened a lot of windows!

Hope you know what I mean by this!
Thanks a lot to all of you who can help me!

~summer

P.S.Hope kidjoe will see this!
summer is offline
Reply With Quote
View Public Profile Visit summer's homepage!
 
When You Register, These Ads Go Away!
Old 05-21-2006, 09:20 AM Re: What code to close a link?
chrishirst's Avatar
Super Moderator

Posts: 13,519
Location: Blackpool. UK
depends on how you opened it

if with javascript just use
<a href="javascript:self.close()">Close Window"</a>

if it wasn't opened with a script you will get a warning about "A script is trying to close" etc etc
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-21-2006, 09:30 AM Re: What code to close a link?
Novice Talker

Posts: 12
It worked!!!
Thank you so much!!!
~summer
summer is offline
Reply With Quote
View Public Profile Visit summer's homepage!
 
Old 05-22-2006, 12:53 PM Re: What code to close a link?
LadynRed's Avatar
Super Moderator

Posts: 6,539
Location: Tennessee
The real solution is to not open new windows. People do not expect it and it can be quite confusing. People are used to using the BACK button - so let them use it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-22-2006, 04:10 PM Re: What code to close a link?
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
It depends. New windows are usefull in some situations, like when linking to a product image or something. People (me) sometimes expect those to open in a popup, and when you accidently close the window cos you thought it was a popup, it's really irritating.

Also, for off-site links I usually open a new window to logically seperate the other site from my own.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 05-22-2006, 05:42 PM Re: What code to close a link?
LadynRed's Avatar
Super Moderator

Posts: 6,539
Location: Tennessee
I understand all of your reasons. However, the usability studies as well as accessibility concerns all say that you should not open new windows. If you absolutely must open a new window, make sure you TELL the user that a new window will open. What you need to keep in mind is not how YOU surf, but how the general public surfs and uses the web -- and people don't like new windows.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-22-2006, 05:58 PM Re: What code to close a link?
Novice Talker

Posts: 14
I'll second that
DeanG is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to What code to close a link?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15178 seconds with 12 queries