R
robburne
Can anyone help with my javascript code please?
I have a button which when pressed calls a function named 'popjack'
which pops up a new browser window. The function is called with a
paramter 'printflag' and I want to assign the value of this to a
variable 'var1' in the url of the browser window to be opened.
Here is my code below, but 'var1=' part is wrong, can anyone help
please. Many thanks.
Rob.
<script language="JavaScript">
function popjack(printflag){
window.open('myfile.php?var1=printflag','popjack1',
'toolbar=no,location=no,width=650,height=534');
}
</script>
<button class=button onClick="JavaScript: popjack(1)"> Print
Waybill</button>
I have a button which when pressed calls a function named 'popjack'
which pops up a new browser window. The function is called with a
paramter 'printflag' and I want to assign the value of this to a
variable 'var1' in the url of the browser window to be opened.
Here is my code below, but 'var1=' part is wrong, can anyone help
please. Many thanks.
Rob.
<script language="JavaScript">
function popjack(printflag){
window.open('myfile.php?var1=printflag','popjack1',
'toolbar=no,location=no,width=650,height=534');
}
</script>
<button class=button onClick="JavaScript: popjack(1)"> Print
Waybill</button>