Aug 31, 2005 #1 Vadim Programmer Joined Feb 5, 2002 Messages 75 Location US This line: var date = new Date(new Date() - 86400000); gave me an error - 'Object doesn't support this action'- but same line work in all others of my pages. What is wrong?
This line: var date = new Date(new Date() - 86400000); gave me an error - 'Object doesn't support this action'- but same line work in all others of my pages. What is wrong?
Aug 31, 2005 #2 BillyRayPreachersSon Programmer Joined Dec 8, 2003 Messages 17,047 Location GB On the one page it fails on, make sure you have no variables or functions called "Date". Hope this helps, Dan [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
On the one page it fails on, make sure you have no variables or functions called "Date". Hope this helps, Dan [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt]
Aug 31, 2005 Thread starter #3 Vadim Programmer Joined Feb 5, 2002 Messages 75 Location US Thank you, it works Upvote 0 Downvote