PDA

View Full Version : Nice and easy parent.location question.


Golden_Eagle
03-08-2003, 04:53 PM
I'm using

onClick="parent.location='link'"
for a link from a button.

The problem I'm getting is with an anti-leech script that recognises this as a blank referer.

Is there another may I can link without using parent.location from this button?

I have tried

onClick="location='link'"


which also did not work :(

Any ideas?

COBOLdinosaur
03-08-2003, 05:28 PM
you could try: location.replace('link')

But I think you will still get a blank referrer unless you make the button a link and set the link in the href.

Cd&

Golden_Eagle
03-08-2003, 05:43 PM
Tried your suggestion but never worked. :(

I don't really want to get rid of the button cos it'll ruin the look of my site

Example
http://www.font-factory.com/archive/pafiledb.php?action=file&id=7

Download button is one with problem

COBOLdinosaur
03-08-2003, 09:14 PM
There is probably no solution then. The referrer property gets set with a link, that is the nature of the property.