This is one of the example for EVAL command in a auto-generated function which is constructed through MacroMedia's DreamWeaver Editor.This code is a representation of real time application -
Code:
function jmp_Menu(trgt,selectObj,rstr)
{
EVAL(trgt+".location='"+selectObj.options[selectObj.selectedIndex].value+"'");
if (rstr) selectObj.selectedIndex=0;
}
* trgt value is used to load the selected URL
* Document - current window
* Parent - parent document
* newwinAn separate window entitled by newwin
* parent.mainframe located as a sibling Frame/Iframe identified by mainframe
* Top specifies the top level item listed in current window
Bookmarks