Hide # in internal link (for example <a href=#about_us>About_us</a>

15 views
Skip to first unread message

Noe Moreno

unread,
Mar 16, 2016, 3:50:25 PM3/16/16
to Chromium HTML5
I like to change the url in navigator when i put a link into same page in one secction.

I have this link <a href="#about_us">About Us</a> but when i click in this link in URL write me  http:/......#about_us, and i like to view or rename for same url without #

http://.....about_us

thanks

PhistucK

unread,
Mar 16, 2016, 6:43:12 PM3/16/16
to Noe Moreno, Chromium HTML5
You cannot do it with HTML alone, but JavaScript lets you do that. Learn about the history.pushState API.


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html...@chromium.org.
To post to this group, send email to chromiu...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-html5/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Noe Moreno

unread,
Mar 17, 2016, 1:44:43 AM3/17/16
to PhistucK, Chromium HTML5

Thanks a lot.

Noe Moreno

unread,
Mar 23, 2016, 7:12:28 AM3/23/16
to Chromium HTML5
I'm sorry but i don't find anything about thisk, i have this link http://xxx.com/index.php#about_us, and i like to show http://xxx.com/about_us

and i don't know where o how can i do this...

PhistucK

unread,
Mar 23, 2016, 7:48:49 AM3/23/16
to Noe Moreno, Chromium HTML5
​Ask at stackoverflow.com.​


PhistucK

--
Reply all
Reply to author
Forward
0 new messages