This page allows you to perform RS-232 loopback test using DMComPort coclass. When you click Test! button, the script embedded into this page opens selected COM port in the binary mode and writes to it 256 bytes (0..255). If RxD and TxD pins are properly connected, all these bytes will be immediately received and you will see confirmation message.

COM port #:
For your convenience, source code of the script is shown below:
dim Buf(255), Idx
for Idx=0 to 255
Buf(I)=-1
next
sub TestBtn_onclick
dim A(255), I, S
S=PortNum.value & ",9600,0,8,0,-1"
if not ComPort.IsActive then ComPort.Open(S)
Idx=0
for I=0 to 255
A(I)=CByte(I)
next
ComPort.Write(A)
end sub
sub ComPort_OnRead(A)
dim I, F
for I=0 to UBound(A)
Buf(Idx)=A(I)
Idx=Idx+1
next
if Idx=256 then
F=true
for I=0 to 255
if Buf(I)<>I then F=false
next
if F then MsgBox "RS-232 loopback test passed!"
end if
end sub
sub window_onunload
call ComPort.Close
end sub