devxlogo

Make Web Visitors Use the Front Door

Make Web Visitors Use the Front Door

When you design a Web page using frames, you expect visitors to start at the address of the frameset holder, for example, default.htm. However, people who are linking from a search engine may end up bypassing the frameset. The link points directly to a page that was never meant to stand alone. You can gently nudge visitors to the “front door” by using a little JavaScript at the very start of each page that sits inside the frameset. In this example, left.htm, the script checks to see if the current page is the top of the frameset. If it is, the script redirects the browser to the container page, default.htm.

 

Left page

Click here

Don’t put the script in your frameset page or you’ll create an endless loop in which the only way out is to close the browser.

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