ballouta Posted April 19, 2011 Share Posted April 19, 2011 Hello I am studying a function getCompletion(inputControl, evt) the html code is <input id="name" type="text" onkeyup="getCompletion(this, event)"/> the function starts with statement and my questions about it: evt=evt ? evt : (event? event : null); 1) is evt the second parameter sent in the onkeyup event? 2) What is event? 3) how can we read this statement? what does it do? thank you very much Quote Link to comment https://forums.phpfreaks.com/topic/234171-reading-a-statement/ Share on other sites More sharing options...
mens Posted April 20, 2011 Share Posted April 20, 2011 Refer to this link for information on the event property. Brief summary: it gives information as to which key was presses. Quote Link to comment https://forums.phpfreaks.com/topic/234171-reading-a-statement/#findComment-1204225 Share on other sites More sharing options...
ballouta Posted April 20, 2011 Author Share Posted April 20, 2011 Thank You Quote Link to comment https://forums.phpfreaks.com/topic/234171-reading-a-statement/#findComment-1204230 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.