I need the js call itself as a string within a function ..
Something like this:
Of course, in different elements, there might any random js calling myFunction().Code:<div id="myElement" > <a href="javascript:myFunction('foo','bar','myElement');otherFunction('fiddle');randomFunction()">this» </a></div> myFunction (arg1,arg2,element) { document.getElementById(element).display="none"; // I wish to create a new // button/link element which calls // exactly the same js as the link above did, i.e.: // "javascript:myFunction('foo','bar','myElement');otherFunction('fiddle');randomFunction()" }
Any suggestions?



Reply With Quote


Bookmarks