By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,747 Members | 1,783 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,747 IT Pros & Developers. It's quick & easy.

Using document.location

P: 1
I had a question regarding the use of document.location. I have the following script:







This does not work when I browse to the page in Firefox but does in IE. If I enter the path in the Firefox address bar, it works; ie:


What am I doing wrong here?

Also will this work if I browse to the page from another client? That is, will the web server redirect the client to the file located on the server's c: drive rather than the local client?

I tried it from another machine and it did not seem to work.
Oct 1 '06 #1
Share this Question
Share on Google+
2 Replies

P: 4
just an opinion, you shouldn't use absolute paths because they stuck you in a fixed point of the directory hierarchy. Even worse if you add the "C:" because it (also) makes your script OS-dependant.
Oct 2 '06 #2

P: 143
The path you're specifying will redirect people to a location on their own HD.
Oct 2 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.