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!

Do Javascript functions have a history?

Status
Not open for further replies.

Izzo

Technical User
Feb 22, 2001
38
US
Is it possible to call the last function executed?
For instance a function is executed and completed. Then another function is called to execute this exact function again? not a new one.
It would act like the browser history does.

Izzo
 
hie
i think u're able of doin smth like that this way:
use global variable 2 save the function that u're callin now as string:
CurrentFunction=""+MySuperCoolFunction()+""

& then just call it this way:
eval(CurrentFunction)

i didnt checked it myself, its just an idea but it might be workable..

regards, vic
 
Hi,

You can also put the name of the last fonction used in an hidden form !!

Hope this hepls....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top