jrgeoffrion
02-12-2003, 05:39 AM
Hi,
I'm trying to get the first and second character of the file in use to print in the window.
For example, if my document is called 01weddings.shtml, I would like to have 01 printed.
My guess is that the code would look like this... but I'm missing an argument/attribute
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write(document.____.CharAt(0) + document.____.CharAt(1));
// -->
</SCRIPT>
Any one can help?
Feel free to post or e-mail me.
Regards,
JR
I'm trying to get the first and second character of the file in use to print in the window.
For example, if my document is called 01weddings.shtml, I would like to have 01 printed.
My guess is that the code would look like this... but I'm missing an argument/attribute
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write(document.____.CharAt(0) + document.____.CharAt(1));
// -->
</SCRIPT>
Any one can help?
Feel free to post or e-mail me.
Regards,
JR