You are here: irt.org | FAQ | JavaScript | Link | Q1188 [ previous next ]
Try:
<script language="JavaScript"><!-- var fileName = location.pathname.substring(location.pathname.lastIndexOf('/')+1) alert(fileName); //--></script>
©2018 Martin Webb