Javascript – How to open a link in new window(not in new tab) in Html/css

csshtmljavascript

To open link in new tab you do this:

<a href="#" target="_blank">open in new tab</a>

But how can I made it open in a new window?

So, help me out to overcome this problem.

Best Answer

i think yo want to open a completely new window on clicking a link.in other words u want a popup.try the following code.

<script language="javascript" type="text/javascript">
function popitup(url) {
newwindow=window.open(url,'name','height=200,width=150');
if (window.focus) {newwindow.focus()}
return false;
   }

<a href="popupex.html" onclick="return popitup('popupex.html')">Link to popup</a>