...

View Full Version : setup cookie



xxkk
05-16-2010, 08:28 PM
Hello
I have below script

i need add cookie to it . disable script untill cookie is not expired

can you please help me



<script language=javascript type="text/javascript">
<!-- Hide script from old browsers

//new window script
function jshow()
{window.open("http://www.google.com","blank")}

// End hiding script from old browsers -->
</script>

Philip M
05-16-2010, 09:55 PM
Cookies have been covered very many times in this forum, and elsewhere. Use the "Search" facility or try Google.

<script language=javascript> is long deprecated and obsolete. Use <script type = "text/javascript"> instead. The <!-- and //--> comment (hiding) tags have not been necessary since IE3 (i.e. since September 1997). If you see these in some published script it is a warning that you are looking at ancient and perhaps unreliable code.

xxkk
05-16-2010, 10:07 PM
Cookies have been covered very many times in this forum, and elsewhere. Use the "Search" facility or try Google.

<script language=javascript> is long deprecated and obsolete. Use <script type = "text/javascript"> instead. The <!-- and //--> comment (hiding) tags have not been necessary since IE3 (i.e. since September 1997). If you see these in some published script it is a warning that you are looking at ancient and perhaps unreliable code.

I did try google but it doesnt help
Anyway , Yet i need to add cookie to above script instead of not useful texts !

i appreciate someone can help me



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum