The Conservative Cave

The Help Desk => Computer Related Discussions & Questions => Topic started by: jinxmchue on September 22, 2009, 11:41:17 AM

Title: Help with a script
Post by: jinxmchue on September 22, 2009, 11:41:17 AM
I found a referral-based blocking script and I'd like to know if I can change the effect of a successful block from this:

if (failed>0){
alert("Access to the page denied!")
history.go(-1)

To a redirect.
Title: Re: Help with a script
Post by: Texacon on September 22, 2009, 11:58:31 AM
I found a referral-based blocking script and I'd like to know if I can change the effect of a successful block from this:

if (failed>0){
alert("Access to the page denied!")
history.go(-1)

To a redirect.

There's your problem right there.  Your little 'man' figure has the wrong HAIR!  You need to have some other hair ... try it like this;

=0){ 

See ... he is much cooler now.

Good Luck!

KC

 :-)

Yeah, I'm a smart ass.  Sorry.
Title: Re: Help with a script
Post by: jinxmchue on September 22, 2009, 12:13:13 PM
I think I found it.  Change the last line to this:

window.location='http://www.dynamicdrive.com';

Or whatever url I want.