How can I submit a function definition and its call from
<input type="text">
tag?
EDIT:
My friend have written a php script where he takes the value of tag and without calling strip_tags function prints on another page. Now I want to show an example with JavaScript (I believe it should be possible) that I can inject a JavaScript code into his website. That is my task.
If you want to invoke script from your textbox, try to use
evalin javascript.Code: http://jsfiddle.net/AuPRM/