Results 1 to 2 of 2

Thread: javascript alert

  1. #1
    Join Date
    Apr 2009

    javascript alert


    i would like to add a onfocus alert pop up when a user tabs into a certain field

    so say if i had

    <td align=center><input maxlength=1 size=1 id="end" class="notnumber" name="18n_">

    when the user tabs in to the textfield an alert pops up displaying a informaiton messaage

    i am sorry i am not very good at this but any help would be much apprecaited


  2. #2
    Join Date
    Jun 2009
    You need to use onfocus event like
    <td align=center><input maxlength=1 size=1 id="end" class="notnumber" name="18n_" onfocus="popup()">
    <script type="text/javascript">
    function popup(){
    However, once the alert window appears, the field loses focus. So its pretty pointless and will irritate the user (not to mention will make the field un-usable).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles