function RequestTickets(url) {
var settings = 'height=500,width=400,location=no,resizable=no,scrollbars=no,status=no,
titlebar=yes,toolbar=no';
var newwindow = window.open(url, '-- Ticket Request Form --', settings, false);
if (window.focus) { newwindow.focus() };
return false;
}
I have the above javascript getting called by the following piece of html code in an umbraco page.
<a href="javascript:RequestTickets('/us/home/requestform.aspx')">here</a> to request tickets for an event.
I keep getting a javascript error saying newwindow is undefined. Confused why it keeps occuring as I have clearly defined it! Please help