[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

relative URLS in frames



Greetings all:

As many of you know, one can use JavaScript to generate multiple frames from
a single URL file.  (This is particularly useful for CGI.)  Unfortunately,
though, relative URLS are given a "javascript:" prefix, which screws things
up if desires the URLS to have a "http://{HOST}/{DIRECTORY}/"; type prefix.
It is true that I can manually add that "http:" type prefix to all my links,
but since I plan on dumping a lot HTML into frames, this would be a lot of
work.  Is there some way in JavaScript that forces all of the relative URLs,
in a frame outputted by a function to use the usual "http:" type prefix.
Maybe some assignment to "location" or "links" or something as a JavaScript
command within the desired frame.  Any help would be greatly appreciated.

Thanks in advanced.  Sincerely, Alicia.
__                                                 ________
 Name: Alicia da Conceicao                        /_______/ (T)oronto
Email: alicia@dolphin.eric.on.ca                 //      /  (I)nternet
         &  alicia@convoke.com                  //      /   (U)sers
NGO's: Dolphin Network (Root) & TIUG (Web)     /|           (G)roup
Where: Toronto, Ontario, Canada, Earth, Sol,  //| o     ___
         Cygnus Arm, Milky Way, Local Group, // | | | | |O/  __
         Coma Super-cluster, Universe           | | |_| |/  |\ \____  Dolphin
Quote: "Gravity is the response of matter         ______/   | \_    \ Network
         to the loneliness of space."             | __ /     \    o  \
 Help: Save dolphins, boycott *ALL* tuna!         || //       \       \
  Try: Toronto Internet Users Group new Web       ||//         \_      \
         Site at: "http://www.convoke.com/tiug";   | /          / |       \_____
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|/~~~~~~~~~~~~~~~~~~~~~~~~~~~