Linking  -  creating absolute and relative links

Whenever you script in NetObjects Fusion, and you make a reference to an external file asset, it’s important to know how to form the link so that it points to the right place to find your file.

There are two types of links which we’ll address here:

Click on the links above for details on both kinds of links.

Absolute Links are links which point to a full URL, like the URL listed in your “location” field in your browser window.

http://www.netobjects.com
http://www.lotus.com/index.html
http://www.gamelan.com

Absolute Links always consist of the following:

http:

//

www.netobjects.com

protocol

divider

server name

index.html

specific file

The file name at the end is not necessary if you are linking to the “home” page of this server.

Relative Links are links which point to a file or file path “relative” to the location of the HTML file which is currently being viewed in your browser.

../html/help.html
../assets/images/picture.gif
../../index.html

You’ll note that all of these links use ./ or ../ as part of their path.  These codes are used to navigate up or down the directory structure on your server.

./ is “Browser talk” for “stay on the current level”

../ is “Browser talk” for “go up one level on the server directory

You can “stack” ../ commands to move up more than one level in a Relative Link

Go Back to Previous Page

Have a question that you can´t find the answer to? Want to report a possible bug?

Send a help request to NetObjects Technical Support