ebedding file name/url in page

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

We have a convention in which, at the bottom of each page
of the web, we list the full URL of the page. Rather than
typing the URL on each page, I'd like to use the "included
page" function to create a page that has the date and time
stamp and the URL, then just include that page in the new
page template, and let the script display the URL when the
page is called up.

Can I do that?

Thanks!

mark
 
-----Original Message-----
We have a convention in which, at the bottom of each
page of the web, we list the full URL of the page.
Rather than typing the URL on each page, I'd like to use
the "included page" function to create a page that has
the date and time stamp and the URL, then just include
that page in the new page template, and let the script
display the URL when the page is called up.

Try these two scripts.

To display the date:
<script>document.write(document.lastModified)</script>

To display the URL:
<script>document.write(document.location.href)</script>

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*
 
Back
Top