Showing posts with label snippets. Show all posts
Showing posts with label snippets. Show all posts

Wednesday, September 10, 2014

Way to stop page load and rendering using javascript

window.stop(); //works in all browsers but IE    
if (IE) {document.execCommand("Stop");}; //works in IE, 

Wednesday, August 20, 2014

icons in pseudo-element ::before ::after content


With CSS3 you can use content property of any pseudo-element, like ::before or ::after. By utilizing this property you can easily implement basic icons for you HTML-markup.
There are in total 18+ icons and symbols available out of the box!


Using this in DOM elements selectors

The word this in JavaScript has a several meaning depending on a contest of a function call. But also in DOM-manipulations this can invoke useful properties of element if used properly. Below is the list of 15 cases how this can be used for DOM manipulations with all tags, inputs/selects and specifically interesting with parts of HREF attribute of <a> tag.