Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested JavaScript Solutions: 26 - 50 of 9258
 
This is what I want: When the user selects a value from a select-box I want the value to be copied to the clipboard. Is this possible using ActiveX or Javascript or something? I think that...
Hi, I have dropdown, <asp:dropdownlist id="Lst_Town" runat="server" onchange="fillCountry(this.selectedIndex);" ></asp:dropdownlist> The dropdown is assigned as follwoing, DataTextFiel...
How can I open the href location in a new window and still keep onclick=location.href as shown in the code below?  I don't want to use the html <a> construct such as <a href="contact.asp">Cont...
Hello All, I have this situation. 1. I have one Text box (say first) and add button. 2. If i click add, one text box should be added + one delete button. 3. if i click add again, secon...
Hi, I need a function written whereby the initial value of a textbox will clear when the user clicks in it and then rest to that initial value if the field leaves focus AND they haven't cha...
Hi, How do i use the window.location funcation to re-route a page from for example http://www.test.com/index.html to http://www.test.com/make.html when for example a condition is met. (exampl...
Hello, I have a small problem with the way document.innerHTML.replace is interpreted.. Put this in the browser window and press enter.. javascript:document.body.innerHTML=document.body.i...
I have a form on a web page.  When my "Submit" button is pressed, a function is called that validates my form.  If a particular radio button is selected, I want to exit the function and forget...
Hi, How do you add a function to document.body.onload e.g. it is currently onload="function1();" it needs to become onload="function1(); function2();" function2(); could be any fun...
hello all!  I think this should be a pretty easy one. I have the following code.  When the user clicks on the div containing the word "Menu", the lower div (id = dropper) displays as a bloc...
I am writing a script that need to change the onclick attribute of DIVs.  I can't simply use: var myvar='aa'; my_div.onclick="myfunction(myvar)"; not sure why, but it doesn't work.  I a...
I have a php script that creates a number of images in a table. Then i have a link that calls the following function. The function goes through and changes the images to different ones. fu...
Is it possible to use an anchor to open a new window using target="_blank" and at the same time to use inline javascript to redirect the page in the first window to the previous page? Somethin...
I am trying to use window.href to a page and grab two text box values to string at the end of the href: For example: textbox one, I type in:  shallow texbox two I type in:  Hal Button:...
I want to replace some value by some other value, like var main = "some vlaue here"; main = main.replace("abc", "xyz"); In the string main, i want to replace all occurrences of "abc" w...
Here's the deal. It may sound a bit complicated, but I hope you'll get this: I have a div-tag (a) filled with text (my content). I have a div-tag (b) containing a menu. I want to change...
I am running a script on a PDA. I need to process CTL_P key sequences in my script, but treat 'P' key presses normally. PDAs return CTL_P key sequences in two seperate keystroke events. Cur...
Dear all experts! This is a Firefox related question. Can someone show me how to dynamically add a keydown event to the iframe in the code below, so that the updateTa() function is execu...
Hi,  iam writing an application in ASP.net. I have a textbox which is made readonly at page load time.In the page i have a drop down list. I want the textbox to be editable when i change the ...
can i write custom confirm box in javascript.Instead of 'OK' and 'CANCEL' buttons i want to show 'YES' and 'NO' buttons. Is it possible to do that.If yes how?
I'm trying to, upon checking off a checkbox, enable/disable two radio buttons of the same group. this is the onclick function thats called when a user checks off the checkbox: function ...
Hi, I have a select box where a user can pick something.  One of the selections is "Revert" which I want to throw up an alert asking the user if he really wants to do this.  I know with <in...
Is it possible to call javascript function on event button click. Here is my C# code which doesn't work: protected void btnOK_Click(object sender, EventArgs e) {             Page.Validat...
Hi there I have a button and when clicked I want to change a session variable from the buttons javascripts onclick event handler. //my button code  <INPUT id="button1" type="button" val...
Anyone knows how to round up/truncate a float value to 2 decimal points here is part of my javascript code: totalAmount=totalAmount+parseFloat(document.FRM.<%="lineAmount"+line+"UI"%>.va...