damindor Posted February 25, 2014 Share Posted February 25, 2014 Is the with statement deprecated?should I get another book? Here is the code <script language="Javascript" type="text/javascript"> <!-- function ReadCookie() { with (document.CookieReader) { if (document.cookie == "") { cookiecontent.value = "No cookies" } else { cookiecontent.value = document.cookie.split('=')[1] } } } --> </script> </head> <body> <form name="CookieReader" action="" > Cookie: <input type="text" name="cookiecontent" /> <BR> <INPUT name="Reset" value="Get Cookie" type="button" onclick="ReadCookie()"/> </FORM> </body> Link to comment Share on other sites More sharing options...
Question
damindor
Is the with statement deprecated?should I get another book?
Here is the code
Link to comment
Share on other sites
0 answers to this question
Recommended Posts