You Are Viewing Posts Under Category: JavaScript Codes

How To Remove Or Strip All HTML Tags In Content Using Pure JavaScript?
| August 3rd, 2020 | 2 Comments | HTML-CSS-PHP-JavaScript / JavaScript CodesNormally 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?
| August 2nd, 2020 | 0 Comments | HTML-CSS-PHP-JavaScript / JavaScript CodesLike 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
| June 29th, 2020 | 0 Comments | HTML-CSS-PHP-JavaScript / JavaScript CodesAs 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
| June 10th, 2020 | 0 Comments | HTML-CSS-PHP-JavaScript / JavaScript CodesHave 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
| June 8th, 2020 | 0 Comments | HTML-CSS-PHP-JavaScript / JavaScript CodesThere 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
| June 7th, 2020 | 2 Comments | HTML-CSS-PHP-JavaScript / JavaScript CodesDo 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 […]...










