firefox New window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omerbutt
    Contributor
    • Nov 2006
    • 638

    firefox New window

    hi i am using this code to open a new window in firefox but it opens a new TAB every time i want a new WINDOW else than a new TAB.
    thanks for any help in advance
    regards,
    omer.

    .js file
    Code:
     
    function open_popup(url)
    {
    	newwindow=window.open(url);
    	if(window.focus)
    	{
    		newwindow.focus();		
    	}
    	return false;
    }
    [html]
    <a href="Del_stk.a sp" onclick="return open_popup('Del _stk.asp')">Del Items</a>
    [/html]
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Originally posted by omerbutt
    hi i am using this code to open a new window in firefox but it opens a new TAB every time i want a new WINDOW else than a new TAB.
    thanks for any help in advance
    regards,
    omer.

    .js file
    Code:
     
    function open_popup(url)
    {
    	newwindow=window.open(url);
    	if(window.focus)
    	{
    		newwindow.focus();		
    	}
    	return false;
    }
    [html]
    <a href="Del_stk.a sp" onclick="return open_popup('Del _stk.asp')">Del Items</a>
    [/html]
    try using this..
    window.open(URL , "_blank")

    Comment

    • omerbutt
      Contributor
      • Nov 2006
      • 638

      #3
      Originally posted by hsriat
      try using this..
      window.open(URL , "_blank")
      no sir it still opens in the same window, let me clear you i have a page in which i have a link and on ccliking that link a popup window opens and there i have another link say www.google.com now i want that when i click on the google link in that opup window it should open Google in a new window, the code you provided still opns the link in the new tab remaining on the same window.

      Comment

      • hsriat
        Recognized Expert Top Contributor
        • Jan 2008
        • 1653

        #4
        Originally posted by omerbutt
        no sir it still opens in the same window, let me clear you i have a page in which i have a link and on ccliking that link a popup window opens and there i have another link say www.google.com now i want that when i click on the google link in that opup window it should open Google in a new window, the code you provided still opns the link in the new tab remaining on the same window.
        ok, then change one of the attributes which you used to open that first popup to open the second popup.

        eg... if you used location=no,men ubar=no,resizab le=yes or some other attributes to define the properties of first popup in the window.open(), then change one of them when you open the second popup..

        Comment

        Working...