I have this code :
<a id="bookingLink" href="javascript.void(0);">Link</a>
$('#bookingLink').click(function(e) {
e.preventDefault();
window.open("http://www.google.com", "Booking Daniela", "width=950,height=680");
});
and it fails (no popup is showed; also, the link in the bottom is /javascript.void(0);)
Why? And how can I fix it?
P.S. Popup are enabled on the browser 🙂
Microsoft does not support “name” attribute, so if you delete “Booking Daniela”, it will work
Check the following MS documentation page, http://msdn.microsoft.com/en-us/library/ms536651%28v=vs.85%29.aspx.
sName
“Optional. String that specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.”