devxlogo

Dynamic, Location-based Home Page Selection

Dynamic, Location-based Home Page Selection

When at home, I like to have my browser’s home page to be different than at work. When I open up my browser on my laptop at home, it goes to news.google.com, when I open up the browser at work it goes to an internal engineering Web page. Save the following HTML on your local machine (or laptop) and point your browser to this file as the home page. When the browser is started, it runs the Javascript in this file and gets redirected automatically to the home page based on where you are i.e. home/work.This script looks at the IP address that the laptop (wireless) gets. At work I always get a 128.x.x.x type of address so the browser gets redirected based on that.

I had to upgrade the java plugin to Version 1.4.2_03 (build 1.4.2_03-b02) to make sure the getAddress() always got the latest DHCP address.

See also  Is Machine Learning Automating Creativity in Graphic Design?
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist