You can't do that...
but I have done the following (for debug purposes)...
subroutine dbg(msg)
<SCRIPT language=javascript>
<!--
alert(<%=msg%>)
// -->
end sub
Then within the asp code, call:
dbg("This is what I want to see at the browser alert window!")
-----Original Message-----
From: yls [mailto:yls177@h...]
Sent: Monday, October 09, 2000 1:54 AM
To: javascript
Subject: [javascript] alert in asp
Hi, can i do a alert in asp? i have done the below
response.write "<script>alert('hello')</script>"
response.redirect "http://www.yahoo.com"
but the alert hello never come up...