Tuesday, 15 March 2011

javascript - How to remove the address bar from a popup window -



javascript - How to remove the address bar from a popup window -

onclick="window.open('index.php?option=com_virtuemart&page=shop.cart&product_id=<?php echo $product_id? >&itemid=18','mywindow','directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=350')"

internet explorer show address bar, isn't possible remove on popup. browsers hide address bar location=no flag, ie doesn't.

from msdn:

in net explorer 7 , later, cannot remove address bar in net zone windows, security (anti-spoofing) reasons.

popups should avoided anyway, many visitors have popup blocking software or browser block it. improve consider <div> overlay on page code manually, or utilize ready made plugin such jquery ui dialog or lightbox.

javascript popup popupwindow

No comments:

Post a Comment