473,395 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

firefox New window

omerbutt
638 512MB
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
Expand|Select|Wrap|Line Numbers
  1.  
  2. function open_popup(url)
  3. {
  4.     newwindow=window.open(url);
  5.     if(window.focus)
  6.     {
  7.         newwindow.focus();        
  8.     }
  9.     return false;
  10. }
  11.  
[html]
<a href="Del_stk.asp" onclick="return open_popup('Del_stk.asp')">Del Items</a>
[/html]
Feb 20 '08 #1
3 1504
hsriat
1,654 Expert 1GB
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
Expand|Select|Wrap|Line Numbers
  1.  
  2. function open_popup(url)
  3. {
  4.     newwindow=window.open(url);
  5.     if(window.focus)
  6.     {
  7.         newwindow.focus();        
  8.     }
  9.     return false;
  10. }
  11.  
[html]
<a href="Del_stk.asp" onclick="return open_popup('Del_stk.asp')">Del Items</a>
[/html]
try using this..
window.open(URL, "_blank")
Feb 20 '08 #2
omerbutt
638 512MB
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.
Feb 20 '08 #3
hsriat
1,654 Expert 1GB
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,menubar=no,resizable=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..
Feb 20 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: fogwolf | last post by:
First a basic outline of what I am trying to do: I want to have a page spawn a pop-up when you click "submit" on its form. On this pop-up page there will be another form. When you click "submit"...
2
by: Chuck Martin | last post by:
I am having a most frustrating problem that references, web searches, and other resources are no help so far in solving. Basically, I'm trying to design a pop-up window to be called with a funciton...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
3
by: Alex | last post by:
Hi, I'm having some trouble implementing a popup in firefox. I attached some simplified code at the bottom. This is part of a firefox extension. What happens is that a popup window is created,...
3
by: niconedz | last post by:
Hi The following code works fine in IE but not Firefox. It's a little script that zooms an image and resizes the window to fit. Can anybody tell me what's wrong? Thanks Nico == btw.....
11
by: Alex.Svetos | last post by:
Hello, I'm trying to get a popup to keep focus when it is re-clicked. The script below is supposed to produce this exact behaviour, however it doesn't work, at least on firefox 1.0.7 and moz...
4
by: Andre | last post by:
With Firefox 1.5+, I used the following code to close a window/tab: === <html><head> <script language="javascript" type="text/javascript"> function closeWindow() { window.open('','_parent','');...
1
by: jayvardhanpatil | last post by:
Hi All, I'm trying to position a dialog at my mouse position in firefox. I have one image control. On mouseover of image I call captureMouse() to get mouse position and after click on image I...
29
Frinavale
by: Frinavale | last post by:
I have 2 FireFox (version 2) browser windows opened. One is the child of the other. When the user is finished with the child window, a method in the parent window is called to refresh a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.