my code has a print button and when that is clicked i want a new window to open up wit a list of details that the user edits. that is all the data of the form. (only the values)
how do i do this?
rukshilag 0 Junior Poster
Recommended Answers
Jump to PostIn the opened popup window you can read the values of the parent window like,
window.opener.formname.elemname.value;
and then display this value on the pop up page
Jump to PostYour Clickheretoprint() function is doing most of the part except reading the form values.
Since you are using document.write to render data in the popup window there is no need for prefixing window.opener to access the form elements. You can directly access them by
document.formname.elementname.value
Here is an …
All 8 Replies
parry_kulk 14 Junior Poster Team Colleague

rajarajan2017
rukshilag 0 Junior Poster
parry_kulk 14 Junior Poster Team Colleague
rukshilag 0 Junior Poster
parry_kulk 14 Junior Poster Team Colleague
rukshilag 0 Junior Poster
dean8710 -3 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.