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="JavaS cript">
function popjack(printfl ag){
window.open('my file.php?var1=p rintflag','popj ack1',
'toolbar=no,loc ation=no,width= 650,height=534' );
}
</script>
<button class=button onClick="JavaSc ript: 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="JavaS cript">
function popjack(printfl ag){
window.open('my file.php?var1=p rintflag','popj ack1',
'toolbar=no,loc ation=no,width= 650,height=534' );
}
</script>
<button class=button onClick="JavaSc ript: popjack(1)"> Print
Waybill</button>
Comment