Hello everybody!
I tried to automatically change the value of an <input> (in a 2nd htm-file) while loading the 1st one, but it doesn't work.
function test()
{
window.open("url-of-the-2nd-htm-file","window");
document.all.in_one.value = "3";
}
I have a htm-file...
I tried the button-version, but it doesn't work.
>>> I think you have a problem to include onClick in the <p> tag?
not realy, i have onClick in other <p> tags and it works fine.
Hello everybody!
I have a problem with the following function:
function test()
{
document.all.example_1.innerHTML = "<p onClick="test2()">It's just a test</p>"
}
the second function test2() works fine on it's own, but if I try to integrate test2() in test() on the written...
try:
value1 = eval(data.One.value);
value2 = eval(data.Two.value);
with eval() you can read out a string as if it were js-code. a few days ago i wrote a little script to sum two numbers (just to try if i had understand the basic things in js). first i had the same problem and 3+1 was 31...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.