Why does JavaScript only work after opening developer tools in IE once?

It sounds like you might have some debugging code in your javascript. The experience you’re describing is typical of code which contain console.log() or any of the other console functionality. The console object is only activated when the Dev Toolbar is opened. Prior to that, calling the console object will result in it being reported … Read more

Why don’t self-closing script elements work?

The non-normative appendix ‘HTML Compatibility Guidelines’ of the XHTML 1 specification says: С.3. Element Minimization and Empty Element Content Given an empty instance of an element whose content model is not EMPTY (for example, an empty title or paragraph) do not use the minimized form (e.g. use <p> </p> and not <p />). XHTML DTD … Read more

What does do?

November 2021 Update As this answer is now 10+ years old my recommendation would be to leave this tag out altogether, unless you must support old legacy browsers. October 2015 Update This answer was posted several years ago and now the question really should be should you even consider using the X-UA-Compatible tag on your … Read more

Hide scroll bar, but while still being able to scroll

Just a test which is working fine. #parent{ width: 100%; height: 100%; overflow: hidden; } #child{ width: 100%; height: 100%; overflow-y: scroll; padding-right: 17px; /* Increase/decrease this value for cross-browser compatibility */ box-sizing: content-box; /* So the width will be 100% + 17px */ } Working Fiddle JavaScript: Since the scrollbar width differs in different … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)