base href ignore
When displaying the results of an intranet seach i use a <base href=... > to point to the original locations of the graphic files in the documents.
Some elements must be referenced using relative paths <script src=../scripts/xxx.js> and i can't use absolute path here for lots of reasons.
Is there a way to say the browser "ignore the base href for following link" without using absolute paths?
My mistake, I thought the post was about the target not the href.
I am well and truely embarrassed now :eek:
Last edited by Mr J; 09-26-2004 at 08:07 AM.
That would be as invalid as pointless.
Originally posted by Mr J
You could try using the target attribute
<script src=../scripts/xxx.js target="blank">
There are 4 reserved names:
Or you can supply a named window
target = window name
Yes, you could step through all of your links and change each of the "href" values, but it would be easier and more accessible to just use absolute values where you can.
One reason why i can't use absolute addressing is because the same seach script is running on three servers (and one intranet). The relative path points to a resource local to the server sending the reply.
Originally posted by Charles
Yes, you could step through all of your links and change each of the "href" values, but it would be easier and more accessible to just use absolute values where you can. [/B]
A second reason is that the page must load in an intranet, where the absolute path is not available.
Use absolute URL's for the links, not the scripts.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)