Solved

HTML on page bookmark navigation

Posted on 2007-11-22
3
640 Views
Last Modified: 2013-11-19
Hi,

I know how to make bookmarks in HTML document - <a href='..' name='id_x">text</a>. If I add <body onload="location.href='#id_x'"> then the browser will go to the link with name id_x after the hole webpage is loaded. Everything is OK.

The problem is that the named link appears on the top of the browser window.

Is it possible to force the browser (IE Firefox) to show the names link veticaly centered in the browser window?

Thak you.
0
Comment
Question by:pmarkov
3 Comments
 
LVL 1

Accepted Solution

by:
edenmachine earned 200 total points
ID: 20336281
Those are actually called "Name Anchors" and not "bookmarks".

If you're referring to the browser window "handlebar" at the very top above the browser toolsbars then, no, you cannot center that.  The reason it's showing up there in the first place is that you aren't defining the <title> tag.

<html>
   <head>
      <title>Name of your page</title>
   </head>
   <body>
...
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question