Category: JavaScript
How to redirect a page using jQuery ?
If you want to redirect a page , one of the best option is to use the window.location.replace method that can demonstrate the HTTP redirect instead of any jQuery trick. How to redirect a page using jQuery ? Below is a sample code snippet demonstrating the redirection of a page .
Getting the User’s Last Name in Windows 10 Apps using JavaScript
Below is a sample JavaScript code snippet demonstrating how to get the user’s last Name from the Windows 10 Universal Windows Platform App using WinJS. How to Get the User’s last Name in Windows 10 Apps using JavaScript ?
Collapsible links for subcategories in Docusaurus Sidebar
Are you looking at a way to get collapsible links under subcategories in Sidebar in Docusaurus?. We provide you few options in this blog post. One of the easiest way make the links under categories in docusaurus is to change set the docsSideNavCollapsible: true in the siteConfig.js. How to Get Collapsible Links for subcategories in Docusaurus Sidebar ? While the previous fix works only for…
How to Convert Decimal number to hex in JavaScript?
Below is a sample soucrecode snippet demonstrating the conversion of decimal number to hexadecimal in JavaScript. How to Convert Decimal number to hex in JavaScript?
How to Validate Email Address in JavaScript ?
Here’s a sample JavaScript function that shows how to validate an email address . How to Validate Email Address in JavaScript ?
Searching in an Array in JavaScript
If you want to search an array for a value in JavaScript and retrieve the index of the found array element , you can use the Array’s indexOf method. How to search for an element in an array in JavaScript ? When using the indexOf method , if the value is found, it returns the index representing the array element. If the value is not…
Getting the User First Name in Windows 10 Apps using JavaScript
Below is a sample JavaScript code snippet demonstrating how to get the user’s first Name from the Windows 10 Universal Windows Platform App using WinJS. How to Get the User’s first Name in Windows 10 Apps using JavaScript ?
Getting the Account Display Name in Windows 10 Apps using JavaScript
Below is a sample JavaScript code snippet demonstrating how to get the account display name from the Windows 10 Universal Windows Platform App using WinJS. How to Get the Account Display Name in Windows 10 Apps using JavaScript ?
How to find all instances of a pattern in JavaScript ?
To find out out all the instances of a pattern in JavaScript , you can use the regular expression as showb below. How to find all instances of a pattern in JavaScript ?
How to Check if all elements in array are alphabets in JavaScript ?
JavaScript provides the every() method defined in the Array object which lets the developers to check and validate the contents of the array in JavaScript. How to Check if all elements in array are alphabets in JavaScript ? Below is a sample code snippet demonstrating the usage of the every() method to find out if all the elements in the array are alphabets. Note that…
Popular jQuery Grid Plugins
Below is a list of some of the popular jQuery Grid Plugins. Popular jQuery Grid Plugins Brick Work gridscrolling.js Grid Accordion – Responsive WordPress Plugin Recreating the “Design Samsung” Grid Loading Effect Post Revolution – Amazing Grid Builder for WP Gridlock : Responsive CSS Grid System jQuery Gridmanager : Building Rows and Grids
How to pass a function as parameter in JavaScript ?
There are times when you might want to pass a function as argument to another function in JavaScript. The function keyword can work in multiple ways. It can act as a operator and a statement as well. Additionally , you can create an expression as well. How to pass a function as parameter in JavaScript ? We can pass a function as a parameter to…