Topic awaiting preservation: Getting the file name |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: Charles River |
posted 05-23-2002 18:11
If I use the function "window.location.href" I get something like: |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 05-23-2002 20:13
window.location.filename |
Maniac (V) Inmate From: Charles River |
posted 05-23-2002 21:41
I've tried the window.location.filename instruction and it returns "undefined". |
Maniac (V) Mad Scientist From: Long Island, NY |
posted 05-23-2002 21:57
I assume you mean quotes: |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 05-24-2002 01:43
Ah, glad you figured it out. BTW, if you don't know, the second parameter in substr can also be left out. |