SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard aaron.martone's Avatar
    Join Date
    Feb 2003
    Location
    Florida, USA
    Posts
    2,322
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Cant Blur() a Select Box

    I have this code:

    <select name="navigation" onChange="this.blur();doNavChange();">
    <option>....
    ...</option>
    </select>

    I've also tried :

    self.blur();
    document.form1.viewButton.focus(); (tried to have it focus something else)

    But still, the select box remains focused.

    Anyone have a method to fix this?

  2. #2
    SitePoint Addict
    Join Date
    May 2000
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How about this:
    <html>
    <head>
    <title>Test</title>
    <script language="JavaScript">
    function disdrop(formobj)
    {
    if(document.all||document.getElementById)
    {formobj.dropd.disabled=true}
    if(document.layers)
    {formobj.dropd.blur()}
    }
    </script>
    </head>
    <body>
    <center>
    <form name="myform">
    <select name="dropd" onChange="disdrop(this.form)">
    <option selected>Select One
    <option> Page One</option>
    <option> Page Two</option>
    <option> Page Three</option>
    </select>
    </form>
    </center>
    </body>
    </html>


Bookmarks

Posting Permissions

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