Hi,
can any one help me to create the pop up only once. on clicking the text box
[HTML]<html>
<head>
<script type="text/javascript">
function abc()
{
var wind1=null;
var tmp=null;
wind1 = window.open('', 'displayWindow' , 'width=400,heig ht=300,status=n o,toolbar=no,me nubar =no,scrollbars= no');
wind1.document. write("<script> function alert1(f){");
wind1.document. write("var frmdst=f.ta.val ue;");
wind1.document. write("window.o pener.tmp=frmds t;");
wind1.document. write("window.o pener.getValues ();");
wind1.document. write("window.c lose();");
wind1.document. write("}<\/script>");
wind1.document. write("<html><b ody><form action='#' name='myform' method='post'>< TEXTAREA rows='2' cols='20' name='ta'></TEXTAREA><br><I NPUT type='button' value='save' onclick='javasc ript:alert1(thi s.form);'><INPU T type='button' value='cancel' onclick='javasc ript:window.clo se();'></form></body></html>");
}
function getValues()
{
document.forms["source"].elements["srctext"].value = tmp;
}
</script>
</head>
<body>
<form action="#" name="source" method="get">
<input type="text" onclick='abc(); ' name="srctext" value="" size="20" />
</form>
<body>
</html>[/HTML]
can any one help me to create the pop up only once. on clicking the text box
[HTML]<html>
<head>
<script type="text/javascript">
function abc()
{
var wind1=null;
var tmp=null;
wind1 = window.open('', 'displayWindow' , 'width=400,heig ht=300,status=n o,toolbar=no,me nubar =no,scrollbars= no');
wind1.document. write("<script> function alert1(f){");
wind1.document. write("var frmdst=f.ta.val ue;");
wind1.document. write("window.o pener.tmp=frmds t;");
wind1.document. write("window.o pener.getValues ();");
wind1.document. write("window.c lose();");
wind1.document. write("}<\/script>");
wind1.document. write("<html><b ody><form action='#' name='myform' method='post'>< TEXTAREA rows='2' cols='20' name='ta'></TEXTAREA><br><I NPUT type='button' value='save' onclick='javasc ript:alert1(thi s.form);'><INPU T type='button' value='cancel' onclick='javasc ript:window.clo se();'></form></body></html>");
}
function getValues()
{
document.forms["source"].elements["srctext"].value = tmp;
}
</script>
</head>
<body>
<form action="#" name="source" method="get">
<input type="text" onclick='abc(); ' name="srctext" value="" size="20" />
</form>
<body>
</html>[/HTML]
Comment