psomashekhar 0 Newbie Poster

i'm trying to detect the host so that the print function


if detected WSH print should call WScript.Echo(obj)

if detected Rhino print should call java.lang.System.out.println(obj.toString())

if detected Browser create a console for output using Javascript/DOM and print should call like console.print(obj.toString()) or console.innerHTML = obj.toString()...

is there anyone who can help me in doing this out?