Solved

HTML on page bookmark navigation

Posted on 2007-11-22
3
637 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now