Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>Link to root

Link to root

andrew1234
11-24-2004, 03:43 PM
hi
my file scructure is root/cars/makes

my html page is in the folder "makes" and in it i have a link that links to a <script>

randomlinks[0]="1.htm"



and I want it to link back to the root of the site eg root/1.htm
if i go
randomlinks[0]="../1.htm"

then it stays in "makes" and wont go to root

how do i tell this to look 1.htm in the root


thanks

Andrew

liorean
11-24-2004, 03:57 PM
So called root relative URIs start with '/'. Thus, if you want to reach root, just link to '/'. If you want to reach a directory from the root, instead of from your own location in the directory tree, you can use root relative as well. It's a heritage from the Unix world.


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

Disabling F1, F3, etc. default actions
How to group records
Problem with Totaling Total Price
expanding embedded text on same page with no reloading
Textfield
JavaScript is interrupting the loading of images
help with multiple codes

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics