Hyperlink Focus & Highlighting

DanWall

Registered User.
Local time
Today, 22:58
Joined
Aug 11, 2008
Messages
78
Quick question regarding Hyperlinks.

On a form, if you don't want to be able to select or highlight a textbox, you set the disabled property to true.

I have a couple of textboxes, with some fairly long strings, that I require as a hyperlink to open a form.
I can't set the disabled propery to true, or I won't be able to click the link.
With the disabled property set to false, the textbox takes the focus whenever the form is clicked, and highlights the entire string. It looks crap.

Does anyone know how to disable the focus of a hyperlinked textbox?
 
i use this trick all the time for clicking SUPPOSED hyperlinks:

1) turn the link into a text string
2) put a label on top of the box that has the EXACT properties of the box it is over
3) turn the "hyperlink" text blue and underlined as font type
4) with the "onclick" event of the label, use code to do whatever you need it to do when you click on it, which the user will think they are clicking on the "hyperlink looking string".

WORKS EVERYTIME. :)
 

Users who are viewing this thread

Back
Top Bottom