Display massage in the browser through webagent

Hi , how can I use javascript to display alert massage in webagent in webquerysave event , I tested the following , unfortunalty it’s not working :

Sub Initialize

Print "<SCRIPT LANGUAGE=JavaScript>"

Print "alert(""test"")"

Print "</SCRIPT>" 

End Sub

I appreciate any help ?

note : server rel 5 , client rel 6

thanks & regards

Subject: display massage in the browser through webagent

use window.alert(“alert string”)

Subject: RE: display massage in the browser through webagent

I’ve tried it not working again I am runing it through web gaent in webquerysave where the properties of the web agent as following :

runtime : agent list selection

target : none

any help ?