/    Sign up×
Community /Pin to ProfileBookmark

I know this has been discussed before …

but I can’t seem to find it.

I have been playing with links to specific items on pages. Here’s the code:

[CODE]<a href=”#Boise State Broncos Pocket Series Watch”>Boise State Broncos</a> Pocket Series Watch

<a id=”Boise State Broncos Pocket Series Watch”></a>[/CODE]

I place the link at the top of the page and the id where I want the browser to go. Everything works fine.

What I can’t figure out is how to put the link on one page and make it jump to the item on another page. I tried putting in the page url in place of “#” but all that does is take me to the page, not the item on the page.

Can this be made to work when the link is on a page different than the item? How?

Thanks.

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 24.2007 — &lt;a href="myPage.html#anchorName"&gt;anchor on another page&lt;/a&gt;
Copy linkTweet thisAlerts:
@The_Old_SargeauthorMar 24.2007 — Thank you, Fang. I'll see if I can mess that up ... I mean ... make that work. ?
Copy linkTweet thisAlerts:
@felgallMar 24.2007 — You might find it works better without the spaces in the anchor name since some browsers don't support that.
Copy linkTweet thisAlerts:
@The_Old_SargeauthorMar 24.2007 — Thanks, Stephen.
Copy linkTweet thisAlerts:
@WebJoelMar 24.2007 — Yes, on Validation you'd get a 'warning' about 'malformed URI' when an anchor has whitespace in it.
Copy linkTweet thisAlerts:
@FangMar 25.2007 — You might find it works better without the spaces in the anchor name since some browsers don't support that.[/QUOTE]Just escape the url:&lt;a href="myPaage.html#Boise%20State%20Broncos%20Pocket%20Series%20Watch"&gt;Boise State Broncos&lt;/a&gt;
×

Success!

Help @The_Old_Sarge spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...