Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass a variable into a javascript function

Status
Not open for further replies.

j420exe

MIS
Feb 17, 2002
28
US
Can you pass a variable assigned by an ASP object into a javascript function? I have a date assigned to a variable and I need to pass it into a javascript function for a language conversion. Is this possible? If so any ideas?
 
You can write an ASP variable into a javascript function:


var test = &quot;<%=aspVariable%>&quot;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top