/    Sign up×
Community /Pin to ProfileBookmark

heres a twist refresh child window from parent

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

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@JonaOct 27.2003 — [font=monospace]

opener.document.forms["name_of_form"].name_of_textarea.value="";

opener.location.reload(true);

[/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@Code_OneauthorOct 27.2003 — it didnt work but thats ok, it isnt that important, I aprecaiate the help anyway,

regards

Code One
Copy linkTweet thisAlerts:
@JonaOct 27.2003 — [font=arial][color=maroon]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...[/color][/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@Code_OneauthorOct 27.2003 — 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
Copy linkTweet thisAlerts:
@JonaOct 27.2003 — [font=arial][color=maroon]Oh, I see.[/color][/font]

[b][J]ona[/b]
×

Success!

Help @Code_One spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...