OnChange is not getting called for Select Box.

Posted on 2006-04-11
Last Modified: 2012-05-05
I Have a situation where iam calling "onChange" of a comboBox in the "onLoad" of the body. The problem here is when i press Browser Back Button, onLoad is getting called but as there is no Combo onChange event occured it is not being called.

So i need a way where in i call my function on the Browser Back also..

Please help me in this aspect.
Question by:ekartha
    LVL 4

    Accepted Solution

    in the onChange call a function, and in the onload, also call this function then.
    LVL 12

    Expert Comment

    or at the end of the page...


    ...where selectChanged is the name of your js function, post your code for more detailed account.  Why do you wanna fire onChange when the back button clicked?
    LVL 12

    Assisted Solution

    wow, sorry, you've gotta put that function call inside a script tag of course:

    <script type="text/javascript">

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: CSS Specialist

    We don’t have to sell you on the idea of becoming a developer. If you’re you here, you already know it’s one of the most lucrative (and fastest growing) career tracks out there. It’s CSS that allows you to set yourself apart from other web and mobile developers.

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now