computer






 

Question by  gemmie (33)

How do you expire pages in javascript?

I need a message to come up to end users when a page has expired that they were viewing.

 
+7

Answer by  Jsands1982 (871)

Sometimes a simple google search can find what your looking for. I find java scripts to be a pain. Sometime putting "This Page has expired" on the page is better then having complex notes and long explaintion.

 
+6

Answer by  drameshphysio (24)

Java script is used in thousands and thousands of web pages to validate and functioning of web pages. To expire the javasript,On server side, we can convert the date to a string like "mm/dd/yyyy" or use VB script instead. Depends on the server we can edit the information which is already existing.

 
+3

Answer by  gigo (1706)

With setTimeout you can choose the time to expire the time out. For example you can write setTimeout("Functionname", 1000) for an timeout after 10 seconds.

 
+1

Answer by  japratt (1687)

If you are wanting to expire these types of pages then you will have to clear out all of your files.

 
You have 50 words left!