function dynamic(id)
{
// Create dynamic variable and set the value
eval("var test_" + id + " = \"value goes here\";");
// Return the value
return eval("test_" + id);
}
// Call function
var test = dynamic(123);
// Display the value
document.write(test);
Return to Website Builders Resource - Dynamic Javascript Variables