Page 45 of 56

How to detect browser and redirect using javascript

Last updated on January 4th, 2023 at 10:25 amVery simple tutorial using javascript to detect browser and redirect to specific webpage using javascript. Browsers detected are Internet explorer, Chrome or Mozilla Firefox Detecting Internet Explorer The user agent string – available in navigator.userAgent – will always include the text “MSIE”. We can then check for […]

Javascript Countdown for Christmas and Newyear

Last updated on October 18th, 2022 at 07:51 amVery simple Javascript that can be easily added to your website. There are two div’s inside the code as shown above. All you have to do is change the date and time according to your requirement.Inside the Javascript we are defining two functions for the divs with […]

How to find Operating System name using perl script

Last updated on April 27th, 2022 at 01:43 pmJust a very simple command to determine the operating system in which the script is running Output Use English module Print operating system name using english module Use Config module You can also use config module to find the operating system name Don’t have these modules installed […]

Ignore empty lines using perl

Last updated on February 22nd, 2022 at 11:29 amToday I would like to share an idea on how to skip blank lines or lines that have a ‘#’ at the start (or afterone or more white-space characters, i.e. spaces, tabs etc.): The tilda and dollar in between slashes is the regular expression, applied to try […]

« Older posts Newer posts »