Opening a link or redirecting a user to a new page on our website using a button on click event is possible with JavaScript. Often we use <a> tag to redirect users on a new page or to open a new link. However, on some special occasions, we have to redirect the user on the […]
Latest in JavaScript
How to Add Unlimited Fields in Form Using JavaScript and Store Into Database With PHP
Sometimes we need to add unlimited fields into our form for a better user experience. At that time, we can put an ADD FIELD button into the page for dynamic field generation on a webpage. Creating unlimited fields in the form is effortless using JavaScript and jQuery. Also, saving the data into a database is […]
How to Image Preview Before Upload Using JavaScript
Image preview before the upload is a basic and important feature nowadays in profile registration forms. Image preview helps the user to verify the image before uploading. Even more, the user can select another image if needed before submitting a form. Image preview feature can be implemented through JavaScript, jQuery, or any other JS framework. […]
How to Change Text After Page Load With Javascript
Sometimes we have to change our website content or text dynamically instantly after page load. At that time, JavaScript comes in the frame to help us. It is effortless to change text content in our HTML webpage after page load. Change text with innerHTML There is a simple way to change the text of any […]
JavaScript String Methods
JavaScript provides lots of string methods to perform operations on string variables. Here, we will learn all the string methods with examples. What is the String? The string is a collection of one or more characters written inside quotes. Example var m = “Erroser is the best website for learning”; Note: We can use single […]