Asher
Asher

Reputation: 2774

Reloading JavaScript within the HTML DOM

Is there a way to reload JavaScript within a DIV block without doing a page refresh?

Thanks!

Upvotes: 0

Views: 100

Answers (1)

Joe Beuckman
Joe Beuckman

Reputation: 2296

You can evaluate the javascript, say in a string

 var script = "...";

by calling the eval function

 eval(script);

Upvotes: 1

Related Questions