Solved

last modified using javascript

Posted on 2004-09-27
4
217 Views
Last Modified: 2013-12-24
Hello

Please help!  Where do i put this and how do you make it come out in the page

<script type="text/javascript" language="JavaScript" >
<!--
document.write("This page was last updated on + document.lastModified)
// -->
</script>

I already typed this at the bottom of my cfm page but i cant see it when i tried to view my page in IE

Thanks.   New in javascript here.

0
Comment
Question by:mdbbound
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
reggi635 earned 500 total points
ID: 12164656
You Missed a "
Try this:

<script type="text/javascript" language="JavaScript" >
<!--
document.write("This page was last updated on" + document.lastModified)
// -->
</script>


REGGI
0
 
LVL 14

Expert Comment

by:Renante Entera
ID: 12165587
Hello mdbbound!

In addition to reggi635, probably missed something ".value".

So, it will be :

<script type="text/javascript" language="JavaScript" >
<!--
document.write("This page was last updated on" + document.lastModified.value);
// -->
</script>

Just try.


Goodluck!
eNTRANCE2002 :-)
0
 

Author Comment

by:mdbbound
ID: 12165597
Thanks REGGI, I also missed a >> ; <<

Here, i like to share it to everyone,

<script type="text/javascript" language="JavaScript" >
            <!--
                  document.writeln("*** This page was last modified on" +" " + document.lastModified + " ***");
            // -->
            </script>
0
 

Author Comment

by:mdbbound
ID: 12165612
HI eNTRANCE2002,

I added the .value and it says "Last modified on undefined"

Thanks for trying to help anyway, i appreciate it.

0

Featured Post

Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

Join & Write a Comment

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now