How to Force the Title to Appear in the Browser

As you are undoubtedly aware, if you have set up a custom profile on the original WebRing, the browser's title bar will read WebRing.

The instructions will also work for eBay profiles.

In order to change the title, copy and paste the following code at the top of your profile page box:

<script type="text/javascript">
<!-- Hide from Neanderthal browsers
top.document.title = "Insert your title here";
// -->

(If desired, parent.document.title can be substituted for top.document.title. In most cases, it will work just as well.)

That's all there is to it! For an example, you can look at my custom WebRing profile.

You should also be able to use the JavaScript on framed/cloaked sites, so long as both the frameset page and the framed content page are stored on the same server, and on web pages similar to the WebRing custom profile, where either the website design software or the server script does not permit users to directly set the <title></title>. When possible, place the code immediately below the <head> tag on either the top-most page in the frameset or on the frameset page itself.

The fix works with the Active X browsers (including Internet Explorer 5.0 or higher, NeoPlanet, and the AOL browser), with Opera 7.0 or higher, and with all flavors of Gecko (including Netscape 6.0 or higher, CompuServe 7.0 or higher, K-Meleon 0.6 or higher, and Mozilla or, in its present incarnation, SeaMonkey). It does not work with Netscape 4.x or with any versions of HotJava and Lynx.

Please leave your comments in my guestbook (or read what others have written).

Mark A. Foster, Ph.D.

  • Portal to my eighteen websites:
  • E-mail me at:
Site Meter