my dog learned polymorphism
The moose likes Servlets and the fly likes links in the same page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "links in the same page" Watch "links in the same page" New topic

links in the same page

sushant prabhu
Ranch Hand

Joined: Mar 22, 2001
Posts: 66
hi everybody

How do i provide links to a section of a page from the same page.
say from the top of page a link to the bottom of the page.
How do i identify that particular bottom section of the page.
and use it as a link above in the same page.
suppose i have provided links to a separate page. how do i force that particular page on a different browser window.
and how do i control the size of that particular new window .

Sushant Prabhu<br />SCJP2<br />SCWCD<br />OCA9i

Joined: Apr 07, 2001
Posts: 18
First start with the spot you want people to be transported to. Pick a word and wrap it in the <A> tags.
<A>Add</A> the URL and you're done!

Next give that spot a NAME.
<A NAME="upabit">Add</A> the URL and you're done!
What you have done is marked that spot. Now it can be referenced.

Now start building the link.
Click <A>here</A> to be magically transported...

Add the document to be referenced...
Click <A HREF="lesson04.html">here</A> to be magically transported...

And lastly, add the anchor NAME like so...
Click <A HREF="lesson04.html#upabit">here</A> to be magically transported...
And that's all there is to it! Not exactly brain surgery is it??
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
A related discussion is at :
maha anna
I agree. Here's the link:
subject: links in the same page
jQuery in Action, 3rd edition