简体   繁体   中英

How to page jump within a tab on the same page

I am trying to insert a page jump which needs to open a new section/tab on the same page

like shown here

http://www.ebay.com/itm/Sony-CDX-GT540UI-CD-MP3-Car-Audio-Receiver-Front-USB-Input-iPod-controls-/390406795334?pt=Car_Audio_In_Dash_Receivers&vxp=mtr&hash=item5ae60ef046

you have shipping, payment, return policy etc. I am trying to put a link that says

Click Here To View Warranty Details right above the product pictures directly under where it says comes with a 1 year warranty. I am able to either have the tab opened when I click the link or have the page jump down to that section but not open the other tab.

Here is the code I am using

<a href="nogo" onclick="return show('tab3')">Click Here To View Warranty Details</a>

but this will not do the page jump to the return policy it only opens the Returns Policy Tab without making the jump. What am I missing how or what else am I supposed to do? I have replaced the and jump the page but it doesn't happen. Thank you so much for all your help I really do appreciate it.

Below is a link to the code I am working with its a text file thanks again!

https://www.dropbox.com/s/7cikzfk5u31vvec/Page%20Jump.txt

尝试

<a onclick="location.href='#policies'; return show('tab3');" href="nogo">Click Here To View Warranty Details</a>

First of all create an id with a name at the place where you want to link the page.

<span class="headline" id="History">History</span>

then use the below code at the place where you want to create the page down link.

<a href="#History">History</a>

Now when you click on "History" the page will jump to the the code where you have created the id.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM