Preserved Topic: Match Any Part of location.href |
|
---|---|
Author | Thread |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 02-16-2003 06:37
I've recently decided to begin allowing more leeway with translation sites that access my sites' pages. In addition to allowing them access to my images, I've also decided to allow some of the more popular translation sites to remain in frames for clarity and ease of use for non-English-speaking readers. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 02-16-2003 07:00
document.location.href.indexOf('translation'); |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-16-2003 07:13
Strictly speaking, document.location.href doesn't exist, since document.location is different from window.location, and window.location is the one that has properties like href. (document.location, I believe, is nothing more than a string.) If I'm right (and I might be remembering wrong), document.location.href is only working because the browser is being nice to you. =) |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 02-18-2003 16:19
aw, damn... I thought there'd be something about regexp's in here... |
Paranoid (IV) Inmate From: Den Haag, Netherlands |
posted 02-19-2003 16:40
Ahaaa .. a masochist unmasked ... HEY EVERYONE .. this guy actually WANTS to use regexps !!!! .. |