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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute a string

Status
Not open for further replies.

keithcorbin

Programmer
Jan 24, 2002
19
US
Ihave a javascript that takes a string as a parameter. I want to be able to pass a javascript command as this string and execute it, is there any way I can do it?

 
eval(strCommand);
e.g.

eval("alert(\"hello\")")

[bb]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top