Category "dom-events"

Adding buttons dynamically using JavaScript

I am trying to create a simple html page some dynamic buttons. This is what I did so far: <HTML> <BODY bgColor="#d4d4d4" onload="OnLoad()" > <

JavaScript radio button into dropdown with validation

I'm looking to change this code into a dropdown menu, changing the list is fine but cant figure out the onclick event. for (var z = 0; z < ShipTable.length;

Why is event.ClientY always negative on some client machines?

We have an application that is installed on an intranet and is accessed with IE. There are certain things that we want to do if the user closes the browser (e.g

JavaScript onclick event handlers not functioning properly

For some reason, my onclick JavaScript event handlers are not functioning properly. Here is my markup, script and style: <!DOCTYPE html> <html> <

Did windows update 2846071 break the handling of window.event.clientX clientY?

Did windows update http://support.microsoft.com/?kbid=2846071 break the handling of window.event.clientX and clientY? It seems that Windows 7 machines using IE

How to run JavaScript code when a form is being reset?

I know we can attach a handler to the form onsubmit... But how can we add a handler to the form reset event? (usually when clicking on <input type="reset">

Attempting to make enter button 'clickable'

I want to make a 'search' button clickable upon clicking enter. This is my html: <input type="text" runat="server" id="txtSearch" onkeypress="searchKeyPress(

Form change with JavaScript

I have two drop down lists: <select name="branch"> <option value="b">Blacksburg</option> <option value="c">Christiansburg</option

JavaScript changing on click

I'd like some help changing this JavaScript onclick event to just load the data on page the page load... Preferably not using the body on load tag... So obvious

Results page in other window

I have this simple form: <form method="post" action"."> <input type="text" name="title"> <input type="submit" name"send"> </form> I wan

Any way to pass parameters programmatically to an onclick function?

I have an onclick function which performs several tasks. In another JavaScript function I do not have access to the context variables needed to perform these t

Any way to pass parameters programmatically to an onclick function?

I have an onclick function which performs several tasks. In another JavaScript function I do not have access to the context variables needed to perform these t

Any way to pass parameters programmatically to an onclick function?

I have an onclick function which performs several tasks. In another JavaScript function I do not have access to the context variables needed to perform these t