Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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

Posts: 12
Trades: 0
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!
 
 
Register now for full access!
Old 05-21-2006, 09:20 AM Re: What code to close a link?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
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
Trades: 0
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
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

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
Trades: 0
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!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
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
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

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
Trades: 0
I'll second that
DeanG is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to What code to close a link?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.26876 seconds with 12 queries