html - Redirect to another page if time is less than a specific date and time -


i not have php capabilities on server. i'm hoping there html or js way of doing this?

basically, don't want page show if time less specific date , time. so, if browse page, , time less time specified this, should redirect page.

i'm wondering if can done without using js? because can redirect page within <meta> tag

example redirect google.com:

<!doctype html public "-//softquad//dtd hotmetal pro 4.0::19970714::extensions html 4.0//en"  "hmpro4.dtd">  <html>    <head>     <title>redirector</title>     <meta http-equiv="refresh" content="0; url=http://www.google.com">   </head>    <body bgcolor="#ffffff">   </body> </html> 

really hoping can done without js, cause js might disabled on browsers. ofcourse, if there's no other way this, suppose, if js disabled, should redirect them anyways, can't see content.

any appreciated.

i have asp.net capabilities on site if helps any. there way check that? if so, how can way? ofcourse need convert time eastern standard time.

since have .net capabilities:

page_load (object sender, eventargs e) // page load, it's there {     datetime somedate = new datetime(/*day, month, year, etc. initialize like*/);     if (datetime.now < somedate)     {         response.redirect(/*url of other page*/);     } } 

this has advantage of using dates in server, not on client machine.

edit: c# example. i'm rusty vb.net provide vb alternative.

edit again: since said have convert est, may want @ this: timezoneinfo.converttime.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -