window.location.hash
When using a link for a javascript action, I usually do something like this:
<a href="#">Link Text</a>
That way, when someone clicks the link before the page loads nothing terrible happens.
Html Base Tag
On my current project I use this same construct, but with a base tag:
<html>
<head>
<base href="http://...
Hi!
I am running an application using jsp (gsp actually) under Tomcat.
All URLs are absolute. That is, every href begins with a "/".
For example:
<a href="/mytool/role/index" class="menulink">Role</a>
Every request will receive a parameter called SYS.WEBSYSTEM_PREFIX which
must be prepended to every URL.
That is, if the request is
...
I have a site where I use the base tag. All the links in the site are relative, and I set an absolute href so that all the links should be aimed at the right target. And it works in Opera and Chrome. All links in the menu works, all images and style-sheets are found. But in Firefox and IE they are not. And I don't get it!
I can browse i...
I just found out about the <base> HTML tag. I have never seen it actually used anywhere before. Are there pitfalls to its use that means I should avoid it?
The fact that I have never noticed it in use on a modern production site (or any site) makes me leery of it, though it seems like it might have useful applications for simplifying ...