Script Categories

Page Details >>> Page Variable.

Not exactly the most used script, but this one allows you to reference the page name in a variable. Instead of, you can use this script to create a variable that stores index.html for your use! You can use it with alerts, document.write, etc.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
var url = location.href.substring(dir.length,location.href.length+1);
document.write("<b>" + url + "</b>");
// End -->

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!). . Bitcoin Gambling - The Original Crypto Dice Game