Skip to content

Posts tagged ‘javascript’

11
Oct

JavaScript for manipulation with CSS class names

Modern browsers are providing a support of read-only property which returns a live DOMTokenList of the class attributes of the element, which is element.classList, which is actually a list of CSS classes of element, also we have methods for making manipulation with CSS class names and getting their number.
Read moreRead more

10
Sep

Parse URL JavaScript

Parsing of URL is an easy thing for any of web browser because it’s basic functionality. Instead of going deep into regular expressions for parsing of URL strings we can use the specific functionality of browser to achieve the same goals.
Read moreRead more

9
Sep

Auto resize iframe based on content

What if you need to have an ‘iframe’ element on your page with height which depend on iframe’s content?
Read moreRead more

8
Sep

How to add javascript using CMS after execution of other scripts

Suppose you have working site based on CMS, and you need to add some specific functionality only for part of this site using CMS. And your change should affect only this part of a site. So how we can add our new JavaScript after execution of existing scripts without adding it in templates, after other scripts?
Read moreRead more

14
Oct
How to select element on page without jQuery

How to select elements of page without jQuery

In some cases using of libraries such jQuery is impossible, so we should use just JavaScript. How to select elements of page without jQuery?

Read moreRead more