| | |
my html code isnt working please help
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2006
Posts: 7
Reputation:
Solved Threads: 0
<html>
<head>
<title>frame and button</title>
<script language="Javascript">
function sho(form)
{
document.writeln("click click boom!");
alert("clicked!);
form.tex1.value="abc";
}
</script>
</head>
<body>
<form name="cosine">
<input name="tex1" type="text" value=" "><br><br>
<input name="button1" type="button" value="click" onClick="sho(this.form)">
<input name="reset1" type="reset" value="clear">
</form>
</body>
</html>
<head>
<title>frame and button</title>
<script language="Javascript">
function sho(form)
{
document.writeln("click click boom!");
alert("clicked!);
form.tex1.value="abc";
}
</script>
</head>
<body>
<form name="cosine">
<input name="tex1" type="text" value=" "><br><br>
<input name="button1" type="button" value="click" onClick="sho(this.form)">
<input name="reset1" type="reset" value="clear">
</form>
</body>
</html>
What are you trying to do and why isnt it working?
Sorry to lazy to download your code, save it to a HTML file, and guess what it is your trying to do and what isnt working how you want it.
Sorry to lazy to download your code, save it to a HTML file, and guess what it is your trying to do and what isnt working how you want it.
you cant call a "document.write/writeln" after a page has been loaded or it clears the screen. i just learned this myself. you have to work with the ".innerHTML" of the dom object.
so you create an object such as a div can call it by id. then edit the innerHTML
i learned a lot about this at this site: http://www.w3schools.com/
so you create an object such as a div can call it by id. then edit the innerHTML
i learned a lot about this at this site: http://www.w3schools.com/
![]() |
Similar Threads
- my html code isnt working please help (HTML and CSS)
- HELP -my Date code isnt working (ASP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: write issues
- Next Thread: Form
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate array automatically beta box browser bug calendar captchaformproblem cart close codes column css cursor date debugger decimal dependent design disablefirebug dom download dropdown element embed engine enter error events ext file firefox focus form frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 iframe index java javascript javascripthelp2020 jawascriptruntimeerror jquery jsp libcurl listbox maps masterpage media menu microsoft mimic mp4 onmouseoutdivproblem onmouseover paypal pdf php player position post problem programming progressbar prototype redirect regex safari scale scriptlets scroll search security select software sql text textarea unicode w3c website window windowofwords windowsxp





