Archive for the ‘HTML’ Category

FireFox and Hidden Input
October 10, 2006

For some strange reason FireFox has decided that hidden input elements should have styles applied to them as well.

Even though the W3C defines hidden controls in HTML 4.01 as:

“controls that are not rendered but whose values are submitted with a form.”

http://www.w3.org/TR/html4/interact/forms.html#hidden-control

IE and Opera properly follow the standard.

Base tag, IE and JavaScript
August 31, 2006

If you use the <base> tag, links in JavaScript (window.open for example) will ignore the <base> tag. The way around it is to make the link in the JavaScript relative to the domain.

<base href=”http://www.example.com/this_site/”&gt;

The JavaScript should look like this.

window.open(‘/this_site/page2.html’);