JavaScript String indexOf(): Find Occurrence Position in String

In this tutorial, you will learn how to find the first occurrence of a character’s position in a string using the JavaScript string indexOf() method. The indexOf() method in JavaScript is used to find the first occurrence of a character in a given string. It returns the position of the first occurrence of the character … Read more

Get Current Page URL, Path, Host and hash using jQuery

Get current Page URL, Path, and hash using jQuery; In this tutorial, you will learn how to get the current page URL, pathname, hostname, origin using the jQuery. Let’s start the tutorial to find the current page URL and find the pathname, hostname, origin from the current page URL using jQuery with example. How to … Read more

Autosizing Fonts for Android EditTexts

When designing a screen layout, it’s necessary to think about what data is displayed/entered where and how much space is necessary to cover most use cases. And if that data exceeds the allocated space, there are multiple ways to configure a text field using end-ellipsis, scrollbar, or multiline properties. In fact, the latter may even … Read more