Is it possible to control search bar text of a browser via your website using HTML/PHP/CSS/Javascript or any other language. For example, if I have a website called wwww.mywebsite.com, containing 3 different pages e.g. home, pictures and videos and say for example, if the user goes on pictures page I want the website to detect the user is on the pictures page and then change the text in the search bar to www.mywebsite.com/youareviewingpictures or something.
Not sure if this will make sense but in Pesudo code it will look something like this;
IF current state of www.mywebsite.com page = pictures THEN
Search Bar Text = "www.mywebsite.com/yourareviewingpictures"
ELSE
Search Bar Text = "www.mywebsite.com"
If this is not possible, is it possible to write some code, say for example, on the pictures page which changes the search bar text when the user goes to the picture page.
I hope I have made myself clear, if not, please let me know and I will try explaining a bit better.
Thanks.
edit: What I want to know if, whether its possible to change the URL of a website via a code written inside the website that detects what page user is on and changes the URL accordingly.
For example, say I am on www.google.com and I open the the image page the url will change to something like www.google.com/images however, I want to detect via a code that user is on the image page and change the text of the url to say for example, www.google.com/imagepageopened