I want to replace the 3 last characters of file, just before the dot in extension.
I know there is a command to do it but i just can't fine it.
I want it to go like this
[code= Javascript]
Var file = self.location.t oString();
Var MyVar= ( 3 last characters before extension)
If MyVar="_en" replace with "_gr"
else replace with...
User Profile
Collapse
-
How to replace a specidfic character in a phrase
-
Link to a page depending your current address.
I want to make a script which will be reading the name of the file the user is viewing, then change it, and then load it again. And all these into one button
eg. when user is pressing the "Change Language" button the "Home_en.ht ml" to become "Home_gr.ht ml"
but i don't want to put it on the page's code I want to call it on every page i want to use it.
Is it possible for javascript...
No activity results to display
Show More