Solved

last modified using javascript

Posted on 2004-09-27
4
229 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

15 Experts available now in Live!

Get 1:1 Help Now