very useful resourse.
1st place to check browser compatibility tables

 

CSS: Full (100%) height

On 11-10-2004, in Coding, CSS, by Alex

body, html, .element { height: 100%; }

 

Enter button handling 2 forms

On 11-10-2004, in Coding, JavaScript, by Alex

No <input type=”submit”> within a form?
onkeydown="if(event.keyCode==13)return yourFunction();"
or smth like this 😉

 

JavaScript event catcher

On 11-10-2004, in Coding, JavaScript, by Alex

Some browsers (Safari, Mozilla Phoenix) lie for event.target/event.srcElement element on page.

If you wanna be sure that your source element is some tag (eg <h1>) use this trick:

var el = window.event ? window.event.srcElement : e.target;
while (el.tagName !='H1') el = el.parentNode;
alert('Foundn'+el.id);

Big thanks for this advice to Alshur

 

a few important CSS tricks

On 11-9-2004, in Coding, CSS, by Alex

Ten CSS tricks you may not know

and

Ten CSS tricks — corrected and improved

Well, no news for me at all but it is really good to have them in one place.
I would like to add there some

Continue reading »