Tag: javascript

  • Socket js

    // INTERNET EXPLORER
    var socket = new ActiveXObject(“Socket.TCP”);
    socket.Host = “whois.internic.net:43”;
    socket.Open();
    // Send the query….
    socket.SendLine(‘ajaxjs.com’);
    // Wait for disconnect and output the buffer
    socket.WaitForDisconnect();
    Response.Write(“<blockquote><pre>” + socket.Buffer + “</pre></blockquote>”);
    socket.Close();