javascript form field query
Im using javascript to pre-populate a form field with a number passed in a url using this code -
onload="document.form.reference_number.value=campaignCode;"
Every thing is fine but i am wondering if there is a way i can prevent a user from then being able to overkey this campaign code by stopping them keying in the form field with their cursor for example.
Jack Michaelson posted this at 14:23 — 21st May 2002.
He has: 1,733 posts
Joined: Dec 1999
Not 100% sure what u're asking, but have you tried:
<input type="text" name="reference_number" onFocus="blur(this);">
Hope this helps you out,
Shakespeare: onclick || !(onclick)
evvo posted this at 14:38 — 21st May 2002.
They have: 26 posts
Joined: Nov 2001
thats it, just the ticket!
Jack Michaelson posted this at 08:46 — 22nd May 2002.
He has: 1,733 posts
Joined: Dec 1999
u're welcome
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.