Label has no click event

Mondeo

Centurion
Joined
Nov 10, 2006
Messages
128
Location
Sunny Lancashire
I've put a label on a form and i need to know when someone clicks on it. But it has no click event?

Does anyone know if I can add a click event handler or suggest a different control to use, I only need to display the text BACK> and have it clickable

Thanks

UPDATE: I've sorted it, I used a hyperlink control with javascript:history.go(-1) in its NavigateURL property

Works fine!
 
Last edited:
I use this all the time. You can apply styles to it to make it look like what you want it to also.

<input type="text" value="blah" readOnly="true" onclick="alert('foo');" />
 
Back
Top