Jump to content

create the link to call data in same page?


nrsh_ram

Recommended Posts

hi to all,

i want create the link to call page in same page

example:

in tat page i have personal details,results,family details...so i want put a link when i click on "personal details" it will show the personal details, when i click "results" it will show the result...

 

how to create this link?

Link to comment
Share on other sites

anchors....so in the different sections, put this:

<a name="section_name"></a>

where section_name is the name of the section (must be unique)

then on your page, if you have links, you just do:

<a href="#section_name">Section Name</a>

or with JavaScript...since you posted this in the JS forum:

window.location.href="#section_name";

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.