hey, I want to write a small snipet which will first prompt the user to input a javascript command, and then execute that command on the current page. Is there any way to do it??
say the prompt is like:
javascript: prompt();
(its working)
and the command is :
javascript: document.units.attack.click();