homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Disable "open in new window"?
Is it possible to have visitors remain within your page?

10+ Year Member

Msg#: 1203 posted 7:26 am on Jan 29, 2004 (gmt 0)

Hi everyone,

This may sound weird and it's a bit detailed so please have patience with me ;o)

I am an affiliate for ClickBank. I have some affiliates as well and generally, it works well

However on a few items of my own the people have bypassed my join link or my referral id and replaced it with their own.

That's to be expected ... and I've implemented several different methods of masking, hiding, or redirecting so that even on a view source, they only see my code and url. And the script even hides the status bar message so they wouldn't be able to read another site anywhere.

BUT the issue I'm having right now is a new affiliate program through ClickBank that I signed up for that generates 75% profit of every sales. It's an awesome package and I believe it'll go well on my site because I've done well selling similar items of less magnitude.

But ... on the page that I redirect to ... it says loud and clear "Affiliates" or "ClickBank Affiliates"

I'd like to keep them onsite rather than having them go offsite and then get the affiliate link or someone else get credit from the sales.

So, what I'm trying to figure out is if maybe I can include thee page in an IFrame ... so they can see all of the items and descriptions within the package .... but not allow any clicks from the page.

Is there something that will enable me to disallow clicks from witin a frame?

The only other alternative I can think of is to basically design the page from scratch using all my codes and not adding a "Become an Affiliate" link unless I use my affiliate link for referrer also.

Thanks in advance and thank you for your fantastic site!


[edited by: korkus2000 at 10:54 am (utc) on Jan. 29, 2004]
[edit reason] No sigs please TOS #13 [/edit]



WebmasterWorld Senior Member 10+ Year Member

Msg#: 1203 posted 1:03 pm on Jan 29, 2004 (gmt 0)

Is there something that will enable me to disallow clicks from witin a frame?

If I understand it correctly, the page shown in the frame resides on a different domain? In that case: JavaScript can't modify anything on other domains...


WebmasterWorld Senior Member 10+ Year Member

Msg#: 1203 posted 1:17 pm on Jan 29, 2004 (gmt 0)

Hi Darla,

I don't see how you can disable links in a frame loaded from a different site. If you really want to do this then replicating the content in some form (not copying) is about the only option.

One thing I would question here is the size of the problem? I have a few clickbank merchants and I have never had a significant problem of this type.

Are your visitors extremely technical?

I prefer to allow the odd bod to get away with it and spend time on increasing the visitor count.....play the law of averages.

There will always be a bad apple in every basket, but if you can make the basket size much larger, then why care so much about the few odd bad ones?


10+ Year Member

Msg#: 1203 posted 2:06 am on Jan 30, 2004 (gmt 0)

....... No idea what you're saying, but in terms of disabling other pages here's one way to do something... It's generally pointless, but may give a round-about method of something...

Make a layer that will cover the content. Hence, links in the page are inoperable.

I guess that would go like...

<div style="width: 100%; height: 100%;">&nbsp;</div>
<?php include ".....";?>

Of course, width: 100% and height: 100% will not scroll with the page... javascript can do that for you though... at least in IE. Use CSS for Moz.


10+ Year Member

Msg#: 1203 posted 11:34 am on Jan 30, 2004 (gmt 0)

Hi Everyone,

And thank you for the answers. You provided a couple different alternatives that I will consider.

In answer to the question earlier .... I have to admit I probably let "persuasive marketing" get to me ;)

I've never noticed a real problem with visitors bypassing codes. But at about the same time that all these products came out saying how "rampant" this type of thing was .... is about the same time that I had a visitor do so on one of my personal ClickBank items. So my profit was 50% less than normal.

It normally wouldn't have bothered me much ......... but that, combined with my susceptibility to advertising (yeah .. I'm easily swayed, I can admit the "emotional aspect" of marketing gets me, LOL). Add to that the fact that I was just preparing to add a new item at 75% which is not mine ... I realized that ... if they clicked on that link for this product, my commission would go from 75% to 0%.

Taking all this into consideration, I believe I will hold off on any drastic coding and, if I find it to be too much of a problem, then I'll just create my own lead-in pages.

Thanks again for your help.


(Sorry 'bout the sig ... I didn't know earlier)


10+ Year Member

Msg#: 1203 posted 7:58 pm on Jan 30, 2004 (gmt 0)

Hmmm... I still have no idea what you have said here.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved