Hi to all
Here is the code i am trying for
[HTML]<html>
<head>
<title>XMLHttpR equest</title>
<script type="text/javascript">
function display(){
alert(document. getElementById( "Content").inne rHTML);
document.getEle mentById("Conte nt").innerHTM L = "Hello";
alert(document. getElementById( "Content").inne rHTML);}
</script>
</head>
<body>
<form name="something " onsubmit="javas cript:display() ;">
<input type="submit" value="Click ME For Surprise" >
</form>
<div id="Content"></div>
</body>
</html>[/HTML]
in that one when i click on the submit button it is calling the function Start()
but after wards it is not displaying the content "hello" in the <div> tag
and for Some period until last alert is over the Message is displayed in the body of the page ,
after wards it is not visible can u please help me out on this...
And one more question if i have more than one submit button in a page the output will be displayed in div tags or not?
Any body Help me on these ..... plz....
With Regards
Hari Kumar
Here is the code i am trying for
[HTML]<html>
<head>
<title>XMLHttpR equest</title>
<script type="text/javascript">
function display(){
alert(document. getElementById( "Content").inne rHTML);
document.getEle mentById("Conte nt").innerHTM L = "Hello";
alert(document. getElementById( "Content").inne rHTML);}
</script>
</head>
<body>
<form name="something " onsubmit="javas cript:display() ;">
<input type="submit" value="Click ME For Surprise" >
</form>
<div id="Content"></div>
</body>
</html>[/HTML]
in that one when i click on the submit button it is calling the function Start()
but after wards it is not displaying the content "hello" in the <div> tag
and for Some period until last alert is over the Message is displayed in the body of the page ,
after wards it is not visible can u please help me out on this...
And one more question if i have more than one submit button in a page the output will be displayed in div tags or not?
Any body Help me on these ..... plz....
With Regards
Hari Kumar
Comment