Solved

last modified using javascript

Posted on 2004-09-27
4
265 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 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