hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Programming Tutorials : cool Javascript
Reply

Programming Tutorials How-Tos related to programming, databases, and the like.
Forum Jump

cool Javascript

Reply Post New Thread In Programming Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-27-2006, 06:34 PM
Sharewareisland Sharewareisland is offline
Disabled
 
Join Date: Aug 2006
Posts: 9

cool Javascript


cool Javascript that can tell u the last modied time of a page .htm page on anyones site

cut and paste this code into the url when u are a .htm page

javascript:alert(document.lastModified)

or bookmark that code or make it a link on the tool bar or something

Reply With Quote


Sponsored Links
  #2  
Old 08-28-2006, 12:13 AM
newyorker1907 newyorker1907 is offline
Newbie
 
Join Date: Aug 2006
Posts: 8
interesting. thanks

Reply With Quote
  #3  
Old 09-22-2006, 07:40 AM
Ranky Ranky is offline
Newbie
 
Join Date: Sep 2006
Posts: 8
That isn't a bad script. But it doesn't seem very complicated

Reply With Quote
Sponsored Links
  #4  
Old 12-06-2006, 12:08 AM
m4trix m4trix is offline
New Member
 
Join Date: Dec 2006
Location: Halifax, NS, Canada
Posts: 1
Quote:
Originally Posted by Ranky
That isn't a bad script. But it doesn't seem very complicated
Sometimes that is best.

K.I.S.S.

Reply With Quote
  #5  
Old 12-08-2006, 08:24 PM
adpyramid adpyramid is offline
Newbie
 
Join Date: Dec 2006
Posts: 12
I just keep getting the 'current' date/time... How do I use this again??

Reply With Quote
  #6  
Old 12-12-2006, 08:15 AM
ruptbot ruptbot is offline
Junior Guru Wannabe
 
Join Date: Mar 2006
Location: tikkabilla
Posts: 49
Quote:
Originally Posted by adpyramid
I just keep getting the 'current' date/time...
so do i, and i tried it on an old page that i know hasnt been updated

Reply With Quote
  #7  
Old 12-14-2006, 09:17 PM
Googled Googled is offline
Web Hosting Master
 
Join Date: May 2005
Location: Planet Earth
Posts: 785
This is not what I call a cool javascript..

try :

document.write("Cool Javascript");

this is one

G

Reply With Quote
  #8  
Old 09-07-2011, 06:48 PM
Slepe Host Slepe Host is offline
Newbie
 
Join Date: Aug 2011
Posts: 16
If you put javascript:alert(document.lastModified) on a page or even on a old page it will return todays date. Because you are modifing by putting that in there???

Reply With Quote
  #9  
Old 09-07-2011, 07:00 PM
8088 8088 is offline
Web Hosting Master
 
Join Date: Nov 2010
Posts: 616
With JavaScript, which is client-side in this case, you can't detect something server-side without having the server send that information. It will only show the last modified date if it was sent as a Last-Modified header by the server. If the header isn't sent, it wil show the current client's date and time.

Very old topic by the way.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Facebook's Recently Acquired Mobile App Platform Parse Launches Web Hosting for Developers Web Hosting News 2013-05-08 10:49:17
A Cool DMCA Takedown Flowchart from Web Host Nexess Blog 2012-02-29 18:00:18
Noise Filter: Google’s Seawater-Cooled Finland Data Center Web Hosting News 2011-06-06 14:59:57
Colocation Firm Mac Mini Vault Uses Apple TV as Web Server in 24-Hour Experiment Web Hosting News 2011-05-20 19:57:22
Communication Tools Developer 4PSA Seeks Summer Interns Web Hosting News 2011-05-20 16:49:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?