You Are Viewing Posts Under Category: JavaScript Codes

How-To-Remove-Or-Strip-All-HTML-Tags-In-Content-Using-Pure-JavaScript

How To Remove Or Strip All HTML Tags In Content Using Pure JavaScript?

Normally on the server-side, you could use a series of PHP functions (such as strip_tags) and remove HTML and ugly formatting. However, if you’re unable to use the server (or you use Node.js) to achieve this task, then you can still use Javascript to do it. In this article, you will find 3 way...
How-To-Set-Or-Specify-Referring-Page-Using-Pure-JavaScript

How To Set Or Specify Referring Page Using Pure JavaScript?

Like you are making a web app or writing any program where you need to know that from which page your visitor or use came to the current page then it is possible via pure plain vanilla javascript. The reason will be many behind implementing this logic like to display the personalized experience to t...
Run-Execute-A-script-Tag-Inserted-On-Page-Using-innerHTML-DOM

Run/Execute A </script> Tag Inserted On Page Using innerHTML DOM

As you know that innerHTML does not run scripts and here our problems start. So what’s the workaround to this problem. You can view the below-linked answer also that I think is related to my question but tried and not working with my problem. In short, our question is that do you want to run [...
Menu-Bar-Stick-To-Top-After-Scrolling-A-Web-Page-Using-Pure-Vanilla-JavaScript

Menu Bar Stick To Top After Scrolling A Web Page Using Pure Vanilla JavaScript

Have you ever seen one of those fixed (or “sticky’) header bars that disappear when you begin scrolling down the page, then reappear whenever you start to scroll back up? In this exercise, we’ll learn how to build our own using a bit of JavaScript. Sticky navigation (navbar, header navigation)...
Basic-Pure-Vanilla-JavaScript-Fade-In-Out-Slideshow-Without-jQuery

Basic Pure Vanilla JavaScript Fade In/Out Slideshow Without jQuery

There are many Fade In/Out Sliders are available over the internet but here we have a basic simplest pure vanilla javascript-based Fade In/Out Slider that will work best in all major browsers as well as in all handheld devices. You do not have to add any external jQuery library or anything else to i...
Multiple-Pages-As-Show-Hide-DIV-On-A-Single-Web-Page-Using-Pure-JavaScript

Multiple Pages As Show/Hide DIV On A Single Web Page Using Pure JavaScript

Do you want to show multiple pages using javascript on a single HTML page then you can do this by using show/hide DIV concept? Many time you need to split your content into multiple pages in one HTML based on your category and want the user to open there desired pages by keeping on the […]...
Fully-Customizable-Simple-Progress-Circular-Bar-Using-Pure-Vanilla-JavaScript

Fully Customizable Simple Progress Circular Bar Using Pure Vanilla JavaScript

Progress Circular Bar is a very important design to present and display your informative data value to user and it is counted in the latest beautiful UI element as you have seen in many dashboards. There are many Progress Circular Bar snippets available over the internet with a lot of coding sand st...