/    Sign up×
Community /Pin to ProfileBookmark

Go to tag knowing its id(used for searching in page)

I am knew to javascript. I do not know english well.
I want to add a search function in my page.
User gives number(id) and go to tag with the corresponding id.
Is this possible with javascript? I know that you can access
an object knowing the id(getbyid)to change the way it looks…etc
but i want the user to go to the corresponding point in the page.

Thanks and sorry for my english

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@CharlesNov 17.2006 — Just use a simple link:[code=html]<a href="#foo-id">Foo</a>

<p id="foo-id">Foo and yet Bar.</p>[/code]
Copy linkTweet thisAlerts:
@oldpipisauthorNov 18.2006 — Thanks but i don't mean this. User gives in an input box the id(in your example foo-id,in

mine a number)and with a javascript function i want to jump there. On submit i will have

a function and the page will automatically scroll down in the proper position.Thanks anyway
×

Success!

Help @oldpipis 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.1,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...