I have written a script to open a page in new tab on click of a command button. Unfortunately I get the following error:
window.open is not a function()
I have not created any variable named "Open" which may have over written the open() function.
My script is like this
<script>
function newpagePDF() {
alert('Hi11');
var stringcase = '{!caseid }';
var newpage = window.Open('/apex/ZEB_RMA_Pdf?CaseId='+stringcase );
}
</script>
My command buton is :
<apex:commandButton value="Generate Pdf" onclick="newpagePDF();"/>