Im trying to get some information from a user while a script is actually in the process of running and at the moment im using prompts to get the info from the user.
What i would like would be to have 1 pop up window appear with form boxes in it, then when the user clicks ok on the form, these variables are passed back to the main script and converted into variables
so this is what i have so far
var varA== prompt('Enter var A:', '1');
var varB== prompt('Enter var B:', '1');
var varC== prompt('Enter var C:', '1');
var varD== prompt('Enter var D:', '1');
<a href="#" onClick="writeIt()">click</a>
so that will get each variable by using the prompt window and write the results to the screen when the user clicks on the link click.
anyone know how i can do the same thing but just pop up a window and do it
ive tried window.opener but it just freezes the parent page because i assume its trying to assign values when the code is still running in the background
so ive tried this
var urlstring = 'testpop.htm';
var myWindow = window.open(urlstring,'','height=200,width=280,toolbar=no,minimize=no,status=no,memubar=no,location=no,scrollbars=no');
(on this page is a text field called fa in a form called myform)
the testpop.htm code is like this
and is ran when the user submits the form.
This doesnt work though as i say the main page just freezes.