Topic awaiting preservation: Passing Variable for Link (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 08-31-2003 20:28
Here's the background: I'm creating a CD-ROM version of an existing site. Some of the site's features (e.g. business location finder) won't work on the CD, of course, so when a user clicks a link to those features, he instead gets a page that says "You must go the live site to access this feature ... blah blah blah ..." To continue, he clicks a button that takes him to the relevant page on the live site. code: <SCRIPT LANGUAGE="javascript"> |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 08-31-2003 21:01 |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 08-31-2003 21:52
mr.max: document.location isn't an object - it's simply a string value (which I believe is read-only) of the document's location. I believe you meant to use window.location (or just location), which is an object that has properties such as search and href. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 08-31-2003 22:17
According to MSDN, "location" is an object which applies to document.* and window.* in MSIE JScript implementation... |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-01-2003 00:07
Well, you can't trust MSDN, since that documents the ways that IE is nice to you =) |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 09-02-2003 02:12
That's what I get for stripping down a more complicated script. (And for not knowing what the hell I'm doing.) |