Website Babble Webmaster Forums  


Go Back   Website Babble Webmaster Forums > Creating a Website > HTML, PHP, CSS, Javascript & Coding/Programming Topics

Your WB Notifications

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-23-2009, 04:19 AM
askthetrainer's Avatar
Master Babbler
 
Join Date: Feb 2009
Location: Bangkok, Thailand
Posts: 171
askthetrainer has a few positive reputation points
Send a message via Yahoo to askthetrainer Send a message via Skype™ to askthetrainer
Default Affiliate Links Opening in New Window but NOT Every Time

I will try to explain this... Let's use Amazon for an example. And NO I do not want to create an amazon store for this, I like having on page text links...


So say I have 10 products on one page, with amazon affiliate links set to open in new window. So if they click on 5 items, 5 new pages will pop up

Is there a way I can have Every product open in the same window?

So if they click on 3 products, they all go to the shopping cart on 1 window, rather than opening up 3 new windows or tabs.

This is really important for me because as of now, adsense accounts for 75% of my income and affiliate accounts for 25% which I think is way too small so I'm trying to find a way to increase affiliate sales...
__________________
Mike Behnken, MS, NASM-CPT-PES-CES, CSCS
AskTheTrainer.com
TourismPicks.com | tourismPICS.com | ANYONEcanMakeMoneyOnline.com
Follow me on Twitter
Reply With Quote
  #2 (permalink)  
Old 08-23-2009, 05:18 PM
meloncholy's Avatar
Master Babbler
 
Join Date: May 2009
Posts: 250
meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)
Default

The links probably have a target of _blank at the moment, which forces them to open in a new window.

HTML Code:
<a href="http://www.amazon.com/" target="_blank">Buy something from Amazon in a new window</a>
If you remove the target attribute (or set it to _self), they will open in the current window.

If you change the target attribute to name (where name is any string that takes your fancy*), they will all open in the same, new window.

Edit: I should also have said that you can use as many different names as targets as you like. So if you have an Amazon shop and a Google shop (or whatever), you can use target="shopAmazon" to send all Amazon clicks to one window and target="shopGoogle" to send all Google clicks to a second one.

Alternatively, it's possible you have JavaScript opening the new window (via window.open). In that case, I'd probably suggest removing the window.open and replacing it with a standard link plus optional target attribute so those without JS (and, if it's badly configured, those who Ctrl-click) can use your site.

* Perhaps. You may be limited to [A-Za-z0-9]+ Try a single word if you have problems.
__________________
Pole Exercise - Pole dancing evolved

Last edited by meloncholy; 08-23-2009 at 05:21 PM.
Reply With Quote
  #3 (permalink)  
Old 08-24-2009, 12:30 AM
askthetrainer's Avatar
Master Babbler
 
Join Date: Feb 2009
Location: Bangkok, Thailand
Posts: 171
askthetrainer has a few positive reputation points
Send a message via Yahoo to askthetrainer Send a message via Skype™ to askthetrainer
Question

Quote:
Originally Posted by meloncholy View Post
The links probably have a target of _blank at the moment, which forces them to open in a new window.

HTML Code:
<a href="http://www.amazon.com/" target="_blank">Buy something from Amazon in a new window</a>
If you remove the target attribute (or set it to _self), they will open in the current window.

If you change the target attribute to name (where name is any string that takes your fancy*), they will all open in the same, new window.

Edit: I should also have said that you can use as many different names as targets as you like. So if you have an Amazon shop and a Google shop (or whatever), you can use target="shopAmazon" to send all Amazon clicks to one window and target="shopGoogle" to send all Google clicks to a second one.

Alternatively, it's possible you have JavaScript opening the new window (via window.open). In that case, I'd probably suggest removing the window.open and replacing it with a standard link plus optional target attribute so those without JS (and, if it's badly configured, those who Ctrl-click) can use your site.

* Perhaps. You may be limited to [A-Za-z0-9]+ Try a single word if you have problems.
Thank you very much, so simple...

Do you or anyone else have experience with this on a page? Say I have 20 links to X-affiliate program on a single page.... is it better that they all open in separate windows? Or the same window?
__________________
Mike Behnken, MS, NASM-CPT-PES-CES, CSCS
AskTheTrainer.com
TourismPicks.com | tourismPICS.com | ANYONEcanMakeMoneyOnline.com
Follow me on Twitter
Reply With Quote
  #4 (permalink)  
Old 08-24-2009, 08:17 AM
meloncholy's Avatar
Master Babbler
 
Join Date: May 2009
Posts: 250
meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)
Default

The advice I've read says that links should open in the current window, reasoning that it's impossible to keep people on your site if they want to leave, and that they should be able to choose whether or not to open a new window. That said, I haven't trialled the alternatives against each other myself, nor do affiliate clicks account for a significant proportion of my income, so I wouldn't take my opinion too seriously if I were you.

If you don't get better advice from someone else here, you could try the alternatives for a month (via a scary global replace ) and see how it affects referrals. I'd certainly be interested in the results if you decide to share.
__________________
Pole Exercise - Pole dancing evolved
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On




All times are GMT -6. The time now is 12:46 AM.


 Subscribe to RSS

WB Sponsors

flash chat

Home Jobs Online

Search Engine Marketing

Paid Surveys

Web Design Newcastle

Bookmarking Demon 5



 Subscribe to the Website Babble Feeds

2 Create a Website Homepage | 2 Create a Website Blog


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0