SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast ganesch's Avatar
    Join Date
    Feb 2004
    Location
    Zürich, Switzerland
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool Blur not working

    Hi there,
    I've a very simple thing here, but can't get it work:
    HTML Code:
    <form name="languages" action="index.php" method="get">
    <select name="language" onChange="this.form.submit();">
        <option value="de" SELECTED>Deutsch</option>
        <option value="fr">Français</option>
        <option value="en">English</option>
    </select>
    </form>
    
    <script language="JavaScript" type="text/javascript">
    document.languages.language.blur();
    </script>
    Why is my selector box still focused after loading theh page?

    Cheers,
    Nick

  2. #2
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If that script is inline, it probably has no effect because the document will apply focus after loading. So you would need to do something in an onload handler.


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
  •