E
E
Eugene Chefranov2018-03-03 01:27:55
JavaScript
Eugene Chefranov, 2018-03-03 01:27:55

How to trim a string to a specific character?

There is a line like https://mysite.com/#myanchor. How to extract only the anchor from this? How to clear before "#" sign?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
po5epT, 2018-03-03
@Chefranov

window.location.hash - will return #myanchor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question