I pass in the address of the site pages to variable:
var page = location; var pageHref = page.toString(); Addresses are:
http://mysite.ru/?page=home http://mysite.ru/?page=about http://mysite.ru/?page=news и т.д. How to pull out of similar lines and transfer to a variable what comes after the '=' sign?
The functions substr and substring, as I understand it, work with the positions of the substring in the string. And I need not the number of the character, starting from which the substring is cut, but the character itself, after which.
=? - Grundy