knightcon
New Member
- Messages
- 69
- Reaction score
- 0
- Points
- 0
I was wanting to know how I would go about attaching javascript functions to a html element on the fly such as...
Start HTML
After Script Run
Start HTML
HTML:
<body>
<a href="sometext.html">test</a>
</body>
After Script Run
HTML:
<body>
<a href="sometext.html" onclick="LinkClick('test', 'sometext.html')">test</a>
</body>