↑ Grab this Headline Animator

Friday, January 16, 2009

Usage of JavaScript eval() Function.

The eval() function evaluates a string and executes as it is a script code.

Syntax: eval(string)

Usage Example:

<script type="text/javascript">

document.write("<br />");

document.write("<br />");

var x=10;
document.write("<br />");

eval("alert('Hello world')");


Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.


Latest Articles