+ 1

How to display folder name or file name as web page title?

I want to display titles dynamically I.e. even if I add new file or directory it shows it's name as title..

4th Feb 2017, 1:01 PM
Kapil Shamlani
Kapil Shamlani - avatar
3 Respostas
+ 8
Then totally remove title tag……
4th Feb 2017, 1:04 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
Try that: <body onload="document.title=window.location;"> ... maybe you can even put this in <head> as soon as you want ( 'document' object should be already available ): <script>document.title=window.location;</script> Reference of 'location' object ( if not all url wanted to be displayed ^^ ): https://developer.mozilla.org/en-US/docs/Web/API/Location
4th Feb 2017, 2:04 PM
visph
visph - avatar
0
never thought so.. thanks
4th Feb 2017, 2:03 PM
Kapil Shamlani
Kapil Shamlani - avatar