crazymarvin
11-09-2006, 07:15 PM
Hey, I have very little experience when it comes to JavaScript, but what I want to do is; use a single button to hide a layer and open a pop up. I’m able to do both with separate buttons.
Script I used in the head:
<script type="text/javascript">
<!--
<script language="JavaScript" type="text/JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=400,left = 440,top = 312');");
}
// End -->
</script>
Script I used in the layer:
<input type="button" onclick="javascript:popUp('feedback.htm')" value="Yes">
<input type="button" onClick="toggleBox('Layer1',0);" value="Yes">
I want to make a "Yes" button that does both those functions, I’ve looked on the internet and I’ve been unable to find any help. So if anyone can help me, it would be great.
Thanks
Script I used in the head:
<script type="text/javascript">
<!--
<script language="JavaScript" type="text/JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=400,left = 440,top = 312');");
}
// End -->
</script>
Script I used in the layer:
<input type="button" onclick="javascript:popUp('feedback.htm')" value="Yes">
<input type="button" onClick="toggleBox('Layer1',0);" value="Yes">
I want to make a "Yes" button that does both those functions, I’ve looked on the internet and I’ve been unable to find any help. So if anyone can help me, it would be great.
Thanks