I want to add buttons with characters to the page, creating on-page keyboard for weird-latin letters - ones with cedillas, breves etc.
I have the following code:
<button type="button" onclick="javascript:addCharacter(this);">ğ</button>
Fucntion is defined in the <head> and is like this:
Everything's ok in IE, but in Firefox, alert returns undefined if I uncomment it, and nothing works. Why's that?
I have the following code:
<button type="button" onclick="javascript:addCharacter(this);">ğ</button>
Fucntion is defined in the <head> and is like this:
Code:
function addCharacter(tsource)
{
//alert(tsource.innerText);
searchform.q.value += tsource.innerText;
searchform.q.focus();
}