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')"
Javascript – How to remove the address bar from a popup window
javascriptpopuppopupwindow
Related Topic
- Javascript – How to get the children of the $(this) selector
- Javascript – How to copy to the clipboard in JavaScript
- Javascript – How to modify the URL without reloading the page
- Javascript – How to make the first letter of a string uppercase in JavaScript
- Javascript – Get the size of the screen, current web page and browser window
- Javascript – How to remove a specific item from an array
- Javascript – How to return the response from an asynchronous call
Best Answer
Internet Explorer will always show the address bar, it isn't possible to remove it on a popup. Some browsers will hide the address bar with the
location=no
flag, but IE doesn't.From MSDN:
Popups should be avoided anyway, many visitors will have popup blocking software or the browser will simply block it. It would be better to consider something like a
<div>
overlay on the page which you could code manually, or use a ready made plugin such as jQuery UI Dialog or Lightbox.