webmaniacal
Technical User
Hello all.... I need two buttons on a page next to each other so that one initiates a pop up window sized 278x243 to allow visitors to hear audio files and another sized 750x750 that allows visitors to view videos.
I have used the code below to generate the first pop up but I am having difficulty trying to alter the code so that a second pop up differently sized can function. I tried copying the <head> code and changing the name but I get errors. Could someone please helP? thank you!
<HEAD>
<!-- Begin
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=278,height=243');");
}
<BODY>
<input type=button value="Audio" onClick="javascriptopUp(' style="color: #091D80; border: 4px outset #000080; background-color: #FFFFFF">
<input type=button value="Video" onClick="javascriptopUp(' style="color: #091D80; border: 4px outset #000080; background-color: #FFFFFF">
I have used the code below to generate the first pop up but I am having difficulty trying to alter the code so that a second pop up differently sized can function. I tried copying the <head> code and changing the name but I get errors. Could someone please helP? thank you!
<HEAD>
<!-- Begin
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=278,height=243');");
}
<BODY>
<input type=button value="Audio" onClick="javascriptopUp(' style="color: #091D80; border: 4px outset #000080; background-color: #FFFFFF">
<input type=button value="Video" onClick="javascriptopUp(' style="color: #091D80; border: 4px outset #000080; background-color: #FFFFFF">