# JavaScript link

**URL:** <https://forum.kirupa.com/t/javascript-link/189270>\
**Category:** web dev\
**Created:** [June 1, 2006, 9:48am UTC](https://forum.kirupa.com/t/javascript-link/189270 "2006-06-01T09:48:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobijas20](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@tobijas20](https://forum.kirupa.com/u/tobijas20)\
**Post date:** [June 1, 2006, 9:48am UTC](https://forum.kirupa.com/t/javascript-link/189270/1 "2006-06-01T09:48:47Z")

</div>

I have “index.htm” in English. Now I wan link on “index\_it.htm” in Italian. Is there a way to make it with JavaScript to get document name (index) and just put “\_it” between the name and extension?

Something like: document.open("\<a href=" + “current\_name” + “\_it” + “.htm”…
