Hey, I am using a frame page<BR><BR>Page a has a cookie that offeres a different message every time it relaods<BR><BR>Page b, teh bottom frame, has a text field<BR><BR>how the hell do I get that message value of the cookie on page a to the form field of page b? Actually, frames or not, I have no clue how to take a value of a cookie and then have it appear in a text box.<BR><BR>For reference, this is the script if needed. If not, I can try to explain this again. Basically, I just want to know how to take the variable that displays the message in the cookie, to be displayed ALSO in a box in a form, below the script or another page, whatever. Here is the script if needed:<BR><BR>&#060;SCRIPT LANGUAGE="JavaScript"&#062;<BR>&#060;!--<BR>if (window.Array) {<BR> var ar = new Array();<BR> ar[0] = "Nothing is as easy as it looks.";<BR> ar[1] = "Everything takes longer than you think.";<BR> ar[2] = "&#060;img src=&#039;2.gif&#039;&#062;";<BR> ar[3] = "Left to themselves, things tend to go from bad to worse.";<BR> ar[4] = "Two wrongs are only the beginning.";<BR>}<BR><BR>function setCookie(name, value, expires, path, domain, secure) {<BR> var curCookie = name + "=" + escape(value) +<BR> ((expires) ? "; expires=" + expires.toGMTString() : "") +<BR> ((path) ? "; path=" + path : "") +<BR> ((domain) ? "; domain=" + domain : "") +<BR> ((secure) ? "; secure" : "");<BR> document.cookie = curCookie;<BR>}<BR><BR>function getCookie(name) {<BR> var dc = document.cookie;<BR> var prefix = name + "=";<BR> var begin = dc.indexOf("; " + prefix);<BR> if (begin == -1) {<BR> begin = dc.indexOf(prefix);<BR> if (begin != 0) return null;<BR> } else {<BR> begin += 2;<BR> }<BR> var end = document.cookie.indexOf(";", begin);<BR> if (end == -1) end = dc.length;<BR> return unescape(dc.substring(begin + prefix.length, end));<BR>}<BR><BR>function getMessage() {<BR> var now = new Date();<BR> now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);<BR> var message = getCookie("message");<BR> if (!message) {<BR> message = 0;<BR> } else {<BR> message = parseInt(message) + 1;<BR> if (message &#062;= ar.length) message = 0;<BR> }<BR> setCookie("message", message, now);<BR> return ar[message];<BR>}<BR><BR>if (window.Array)<BR> document.write(&#039;&#060;B&#062;Murphy:&#060;/B&#062; &#039;, getMessage());<BR><BR>// --&#062;<BR>&#060;/SCRIPT&#062;<BR><BR>Thanks