简体   繁体   中英

jQuery tabs (how come clicking tab doesnt show hash on URL?)

I am using jQuery tabs but when I click a tab, the hash doesnt appear on the browser URL. Is there a way to get it there? An option I am missing?

Thanks

You can add a hash using Javascript

document.location.hash = "blahblahblah";

EDIT: Ah, you are using jQuery, I wonder if this answer will help you... changing location.hash with jquery ui tabs

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