Callaspxpagewithjavascript

zhaozj2021-02-16  79

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 (" ");}}}

VAR URL = "addfriend.aspx? Friendid =" Document.form1.txtBoxRecEiver.Value; xmlhttp.open ("post", url, true); xmlhttp.send ();

转载请注明原文地址:https://www.9cbs.com/read-13603.html

New Post(0)