اشكرك اخي MohDesign على الرد
لم يكن هذا مااعنية ... وهي غلطتي لاني لم اوضح سؤالي في البداية 
سؤالي بالتفصيل
يوجد لدي ملفين
test1.html
و
test2.html
اريد ان ارسل قيمة من ملف test1.html الى test2.html ومن ثم يتم تحليها واعادتها مرة اخرى الى test1.html وطباعة الناتح فيه .
بعد البحث وجدت كود جافا يمكن يؤدي المطلوب بعد تعديلة ...
كود test1.html
كود:
<html dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>صفحة 1</title>
<script src="file.js" type="text/javascript"></script>
</head>
<body onLoad="checkCookie()">
</body>
</html>
كود ملف test2.html
كود:
<html dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>صفحة 2</title>
<script src="file.js" type="text/javascript"></script>
</head>
<body onLoad="checkCookie()">
</body>
</html>
واخيرا كود ملف file.js
كود:
function getCookie(c_name)
{
if (document.cookie.length>0)
{
c_start = document.cookie.indexOf(c_name + "=");
if (c_start!=-1)
{
c_start = c_start + c_name.length+1;
c_end = document.cookie.indexOf(";",c_start);
if (c_end==-1)
{
c_end = document.cookie.length;
}
return unescape(document.cookie.substring(c_start,c_end));
}
}
return "";
}
function setCookie(c_name,value,expiredays)
{
var exdate = new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie = c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}
function checkCookie()
{
username = getCookie('username');
if (username!=null && username!="")
{
alert('اهلا بك مرة اخرى '+username+'!');
}
else
{
username=prompt('فضلا ادخل اسمك :',"");
if (username!=null && username!="")
{
setCookie('username',username,365);
}
}
}
كتبته للفائدة ... اتمنى ان يستفيد منه احد .