Hi there,
I am fairly new to Javascrpit. I am trying to send a certain string variable from the current page into a new page (pop up).
Currently the code below simlpy opens up "newpage.asp" in another window.
That's great.
Now I need to take a value and say place it in a text box in "newpage.asp".
Code:<head> <script type="text/javascript" > function open_a_window_func() { open_str = "newpage.aspx"; screen_size ="height=550,width=330,top=60,left=90,location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no" ; x = window.open(open_str,'window_name_eg_myNewWindow',screen_size); x.focus(); } </script> </head> <body> <form id="formcheck" onsubmit="open_a_window_func(this);"> </form> </body>
Can anyone give me a few ideas?
Thank you![]()



Reply With Quote

Bookmarks