Attaching Javascript Functions On The Fly

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
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>
 

kkenny

Active Member
Messages
1,950
Reaction score
0
Points
36
I think that's called DHTML if I'm not mistaken.
 
Top