Oosterhoff
09-22-2014, 10:41 AM
L.s.
I use the dd-DHTML Window widget (v1.1) for my popups. My problem is to get the popup closed. I have two buttons aside of each other, one to get back, the other to close the pop up. These two in this specific way construct the basic yes or no question of the popup. Hence, the X-mark in the upper right corner may stay where it is and work.
I am using the following lines of code inside the popup:
<div id="somediv" style="display:none"><p class="popup2">Text</p>
<form>
<input type="button" value="Terug" onclick="history.go(-1);" />
<input type="button" value="Verder" onclick="close()" />
</form>
</div>
<script type="text/javascript">
var googlewin=dhtmlwindow.open("divbox", "div", "somediv", "Welkom", "width=400px,height=150px,resize=0,scrolling=0,center=1", "recal")
</script>
The first button works well, the second fails. Is there anybody who can tell me what to put in the onclick="close()" line? I tried everything there. Many thanks!
Rob
I use the dd-DHTML Window widget (v1.1) for my popups. My problem is to get the popup closed. I have two buttons aside of each other, one to get back, the other to close the pop up. These two in this specific way construct the basic yes or no question of the popup. Hence, the X-mark in the upper right corner may stay where it is and work.
I am using the following lines of code inside the popup:
<div id="somediv" style="display:none"><p class="popup2">Text</p>
<form>
<input type="button" value="Terug" onclick="history.go(-1);" />
<input type="button" value="Verder" onclick="close()" />
</form>
</div>
<script type="text/javascript">
var googlewin=dhtmlwindow.open("divbox", "div", "somediv", "Welkom", "width=400px,height=150px,resize=0,scrolling=0,center=1", "recal")
</script>
The first button works well, the second fails. Is there anybody who can tell me what to put in the onclick="close()" line? I tried everything there. Many thanks!
Rob