About Content Reading

I have jsp page like

<head>

<title>WelCOME</title>

</head>

<body>

<center>

<table style="border: 2px solid #0066FF;" cellspacing="8" width="470" height="125">

<tr>

<th colspan="2"><font class="formtitle">Screen</font></th>

</tr>

<tr><td>

<input type='text' id='id' name='id' value='' onblur='onBlur_clcick()'> </input>

<input type='button' id='submit' value='Submit' onclick='click_change()'></input>

</td></tr>

</table>

</center>

</body>

<script>

function onBlur_clcick()

{

var readValue = document.location()

}

</script>

when i click the submit button with the value of text field Name Change

i want the string like this in alert

"

<head>

<title>WelCOME</title>

</head>

<body>

<center>

<table style="border: 2px solid #0066FF;" cellspacing="8" width="470" height="125">

<tr>

<th colspan="2"><font class="formtitle">Screen</font></th>

</tr>

<tr><td>

<input type='text' id='id' name='id' value='Name_Change' onblur='onBlur_clcick()'> </input>

<input type='button' id='submit' value='Submit' onclick='click_change()'></input>

</td></tr>

</table>

</center>

</body>

<script>

function onBlur_clcick()

{

var readValue = document.location()

}

</script>"

What Can i Do Tell ME

[1814 byte] By [gayathri_1982a] at [2007-10-3 7:09:49]
# 1

[nobr]replace with this. by the way you have duplicate onBlur_clcick() method in your code

<head>

<title>WelCOME</title>

</head>

<body>

<center>

<br><br>

<table style="border: 2px solid #0066FF;" cellspacing="8" width="470" height="125">

<tr>

<th colspan="2"><font class="formtitle">Screen</font></th>

</tr>

<tr><td>

<input type='text' id='name_change' name="id" value='Name_Change' onblur='onBlur_clcick()'> </input>

<input type='button' id='submit' value='Submit' onclick='click_change()'></input>

</td></tr>

</table>

<br>

</center>

</body>

<script language="javascript">

function click_change(){

alert(document.getElementById("name_change").value);

}

function onBlur_clcick()

{

var readValue = document.location()

}

</script>

[/nobr]

ynroya at 2007-7-15 2:05:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...