Click to See Complete Forum and Search --> : heres a twist refresh child window from parent
Code One
10-26-2003, 06:49 PM
I would like to have a clear button for the textarea, which I have, and onclick it would clear text in textarea on the parent doc. and at the same time refresh the child doc. How would I do this?
Thanks
Code One
opener.document.forms["name_of_form"].name_of_textarea.value="";
opener.location.reload(true);
[J]ona
Code One
10-26-2003, 08:24 PM
it didnt work but thats ok, it isnt that important, I aprecaiate the help anyway,
regards
Code One
Should have worked, assuming that you put that code in the window that was opened, the window that was opened was opened with JavaScript, and you changed the name of the form and elements in my code according to the corresponding names in the parent document's (X)HTML code...
[J]ona
Code One
10-26-2003, 09:17 PM
I cant put it directly into the pop up because the pop up appears once a prompt is loaded and a word is typed then the word you typed is highlighted in a pop up window, along with the remaining text which was searched threw. But the reason I said it isnt necessary is because it renews the minute you make a new search, so really it was a perfection thing on my part that I was striving for, it doesnt effect the quailty of the app. So it's fine as is.
Thanks buddy,
Code One