Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-21-2002, 06:25 PM   PM User | #1
jwoods7
New Coder

 
Join Date: Jun 2002
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
jwoods7 is an unknown quantity at this point
Simple HTML tag problem

I've created two pages, one called page1.html and one called page2.html
On page2.html I have created a tag at the bottom of the page like this
<a name="bottom">

Then on page1.html I created the link to go TO the tag like this:
<a href="page2.html#bottom">bottom of page 2</a>

It works fine in Netscape but in IE5.0 it comes up with a page error saying that
"The page cannot be displayed" and it's looking for page1.html

What's the deal on this? What am I missing???
jwoods7 is offline   Reply With Quote
Old 06-21-2002, 07:17 PM   PM User | #2
MrJL
New Coder

 
Join Date: Jun 2002
Location: Central Ohio
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
MrJL is an unknown quantity at this point
You need to create the Anchor like this...

Code:
<html>
<head>
</head>
<body>
<p>This is your body of the page.</p>
...
<p>This is the last line on the <a name="bottom">page</a>.
</body>
</html>
You have to wrap that anchor around something.

Jer!
__________________
Jers-Web, Inc.
Ever seen 49,825 Alert Boxes on one page? I have!
MrJL is offline   Reply With Quote
Old 06-21-2002, 07:35 PM   PM User | #3
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
actually, you just need to end the anchor tag...

jwoods - all you did was start the tag '<a name="bottom">'

you need to close it... so writing this would be fine:

<a name="bottom"></a>

that's all you need. That'll work in any browser.

~Quack
QuackHead is offline   Reply With Quote
Old 06-22-2002, 01:01 PM   PM User | #4
redhead
Regular Coder

 
Join Date: Jun 2002
Location: United Kingdom Confused: Often
Posts: 859
Thanks: 0
Thanked 0 Times in 0 Posts
redhead is an unknown quantity at this point
it always worked for me in IE 5....
__________________
redhead
redhead is offline   Reply With Quote
Old 06-22-2002, 06:11 PM   PM User | #5
shaun
New Coder

 
Join Date: Jun 2002
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
shaun is an unknown quantity at this point
Does it work now, if not replace the page2.html#bottom with the correct http://www.whatever.com/page2.html#bottom try that and if it don't work then you'll need to ask a more experienced person in this.
shaun is offline   Reply With Quote
Old 06-22-2002, 06:13 PM   PM User | #6
jwoods7
New Coder

 
Join Date: Jun 2002
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
jwoods7 is an unknown quantity at this point
I placed the tag around text like this
<a name="bottom">Bottom of page</a> and it does the same thing.

It works when I upload it to my server and look at it over the internet instead of locally on my computer. That must be the reason...not sure why but at least it works! It's all I need it to do anyway!

Thanks for the help!
jwoods7 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:55 AM.


Advertisement
Log in to turn off these ads.