• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

OnChange is not getting called for Select Box.

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.
0
ekartha
Asked:
ekartha
  • 2
2 Solutions
 
Joachim CarreinSr. Software DeveloperCommented:
in the onChange call a function, and in the onload, also call this function then.
0
 
jessegivyCommented:
or at the end of the page...

</body>
</html>
selectChanged();


...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?
0
 
jessegivyCommented:
wow, sorry, you've gotta put that function call inside a script tag of course:

</body>
</html>
<script type="text/javascript">
selectChanged();
</script>
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now