Open a window behind the current window using Javascript/jQuery -


I have to open a window on the click, but I want to open it behind the current window, or when a new window opens it I should reduce myself I have created a function but it does not really work.

  & lt; Head & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Title & gt; Untitled document & lt; / Title & gt; & Lt; Script type = "text / javascript" & gt; Function wn () {var mm = window.open ('http: //www.google.com', 'navwindo', 'width = 200, height = 200', '_blank ");} & lt; / script & Gt; & lt; / head & gt; & lt; body & gt; & lt; a href = "#" onclick = "wn ()" & gt; Click & lt; / a & gt; & lt; / Body & gt;    

edit

Basic Windows HTML

  & lt; script language = "JavaScript" type = "text / javascript"> function openopop () {window.open ('Mywindow.html', 'NewWin', 'toolbar = no, status = no, width = 350, height = 135'}} & lt; / script> & lt; body onload = "openPopUP ();" & Gt; or & lt; a href = "javascript: openPopUP ();" & gt; lost the popup Click to & lt; / a & gt;          < / Strong>  change from  1000  to  5000  or more  
  & amp; Body onLoad = "setTimeout ('window.blur ()', over 1000)," OnFocus = "setTimeout ('window.blur ()', 1000);" & Gt;   

Try it that it will work for you, type the code of this line into the loading event of your child window ...

  . Parent.opener.focus ();    

Comments