I just started learning JS the other day and am (of course) having some difficulty. I usually grasp onto things quickly but I can't for the life of my find a ...
How can I write the contents of a variable into the text area of a <td>here</td> with javascript? I would like to prompt the user using the called function onclick and ...
I have a strange behavior with a simple function in javascript. I write in a matrix, but when I read it again, I can't see the changes. Can someone please explain ...
Using the url test.html?a=john&b=doe I am using the following code: I can't seem to get an alert to show me anything. The eventual result is not an alert, but a document.write ...
Dear all, Imagine I have the variable myNumber in a javascript script. myNumber contains the digit 44 in it. I can print myNumber in many ways (alert, document.write..) but I do not want to do this, I do not want to see 44 in a browser, I need 44 written in the source code so my parser can pick it up. ...
I have a new window that opens up as a file manager and am creating a link that sends the file name (#name#) back to the form field in the opener page. when I mouse over the link the variable #name# of the file link(eg "strategy.doc") is showed correctly in the status bar but when I click it I get the ...
Sorry about that.... I am making a page that has a form with multiple checkboxes on it and when you check the box it adds the amount set to that box to a total, thats what this code does, what i want to do is be able to send that total to another page so that i can seperate the list ...
function myFunction(){ document.write('var path="../images/2008/'); } I use this kind of function to declare the variable path. It's on a extern javascript file. If I use this function in an other function to define var path, the result is an error: path not defined. Can someone explain to me why this doesn't work?
Hi, When a page is load I have used document.write(variable1), document.write(variable2) etc, in several places of the page. I have a function that calculates these variables upon a user typing in one or more textfields in a form, how can I update the variable values where I have used document.write ? I hope this makes sense! Thanks, Sanj
I wonder why I can't use the "document.write (Total)" in the end. The sum should also change evertime a form element is clicked and be displayed on the page as text(not by using an alert box like function "Calculate2"). In which ways would the answer change if I had prefered the sum to be displayed in another frame, named "frame2"? The ...
Hi, I'm a "newbie trying to get a web page working and it's ok in IE6,Opera7 and Netscape7 but I'm struggling with Navigator4.8. I'm trying to use Javascript to write variable content. The version (cut down to the bones) started as:
Hi I'm pretty new to JavaScript and am having a problem. I thought what I am doing should work but it isn't. Basically I have a form that people can put a quantity into. e.g. A, B, C. I have a JavaScript function called comput that assigns values e.g. A = 5, B = 7, C = 9. Here is the ...
Hi guys, I am passing a value to a function, and then I want to use that value to update a form variable: eg: function update(type){ document.forms.myform.type.value = 10; } Note, that type is the dynamic value for the form element that I want to update. but i cannot get it to work. any help is much appreciated.