base-tag

Url Hash with Html Base Tag

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://...

JSP for setting the BASE HTML Tag

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 ...

Why does the base tag seem to be working in Opera and Chrome, but not in Firefox and IE?

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...

Is it recommended to use the <base> html tag?

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 ...