VAR XMLHTTP = New ActiveXObject ("Microsoft.xmlhttp");
// Asynchronous call xmlhttp.onreadyStateChange = function () {if (xmlhttp.readyState == 4) // The call is completed {if (xmlhttp.status == 200) // Load success {var xmldoc = xmlhttp.ResponseText; Parent.FriendList .document.close (); parent.friendlist.document.open (); parent.friendlist.document.write ("
"); Parent.FriendList.Document.write ("
"); Parent.friendlist.document.write (xmldoc); Parent.FriendList.Document.write (" body> html> ");}}}
VAR URL = "addfriend.aspx? Friendid =" Document.form1.txtBoxRecEiver.Value; xmlhttp.open ("post", url, true); xmlhttp.send ();