I have looked around alot to find a custom prompt that will suit my purposes but am coming across a fundamental problem in most of them. I have alot of iterative JSP includes and I want to pause the execution of the web page while waiting for a response I can do this with the following code.
<script type="text/javascript">
//...
var prompt = prompt('Hello There', 'Hello Back');
var test = 5;
</script>
In this code test will not become 5 until you click ok on the prompt, but in most custom prompts I have seen test will become 5 immediately. I understand that there are complicated ways around this by modularizing code and using setTimeouts() what I am looking for though is one of two things. Is there a way to halt all execution until a dialog box is closed or is there a way to custom skin a java script alert/prompt/confirm.