html and some javascript. It works well. I have a preview button in which I want to take the value from a textbox and display it in a child window. My script for popping up the child window works well, I just can't seem to get the value of the textbox passed to the child window. I have posted the javascript, the html for the textbox and coding from my child window. The value that I am passing is html code. Any help appreciated.... <table align="center">
<tr><td><textarea id="myhtml" name="supoffers" cols="80" rows="20"></textarea></td></tr>
</table>
.<script type="text/javascript" language="javascript">
var passVariable;
function mkPreview()
{
var passVariable= document.getElementById("myhtml").value;
window.open('preview.html', 'Preview', 'width=600, height=600,left=70, top=70 scrollbars=yes resizable=yes menubar=no');
}
</script>
<script>
document.write('opener.passVariable');
</script>
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE