very useful resourse.
1st place to check browser compatibility tables
body, html, .element { height: 100%; }
No <input type=”submit”> within a form?
onkeydown="if(event.keyCode==13)return yourFunction();"
or smth like this 😉
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
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 »

Recent Comments