How can show "ABC" by JScript

J

Jack

Hello,
By VBScript I can use this code
Response.Write "ABC"

How can I use JScript show "ABC"?
Can you help me
 
R

Ray at

<%@ Language=JScript %>
<%
Response.write("ABC");
%>

The @Language line is necessary if you have not changed the default
scripting language in IIS, which is vbscript.

Ray at home
 
A

Aaron Bertrand [MVP]

You need to be more specific. JScript on the client?

<%
a = "ABC"
%>
<script>
document.write("<%=a%>");
</script>
 
T

The Mighty Chaffinch

Ray at said:
<%@ Language=JScript %>
<%
Response.write("ABC");
%>

The @Language line is necessary if you have not changed the default
scripting language in IIS, which is vbscript.

I believe it needs a caps W:

Response.Write("ABC");

MightyC
 
R

Ray at

Oddly enough, jscript isn't picky about that particular word and either one
works. When in doubt, I go with lowercase.

Ray at home
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,356
Latest member
Tommyhotly

Latest Threads

Top