Execute function only when called? Working JS provided...
Posted: Fri Jan 27, 2006 9:38 pm
I have a script that works fine and dandy save but that it automatically executes for the whole page.
The working script...
I want to call this function but only for the anchors I specify. How do I code the function to execute only when called?
John
The working script...
Code: Select all
function preview(event) {alert("disabled"); return false;}Code: Select all
<a href="#" onclick="preview();">link</a>John