473,320 Members | 2,180 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,320 software developers and data experts.

Open 2 windows on 1 click

I want to open 2 windows on 1 click. 1st window is a javascript banner code i.e.
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" src="http://ads.clicmanager.fr/exe.php?c=17346&s=29646&t=1&q="></script>
and second window can be any site like google or yahoo which can be easily open by using window.open but I want to open both windows on one banner click and the banner is in the first javascript.

Wheneven someone clicks on banner, i want 2 windows to be open, first will be the ad window and second will be my own window (google/yahoo etc).
Jun 8 '10 #1
2 2252
Will this work for you?

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. function open_win() {
  5.     window.open("http://www.google.com/", 'window01', 2000)
  6.     window.open("http://www.yahoo.com/", 'window02', 5000)
  7. }
  8. </script>
  9. </head>
  10.  
  11. <body>
  12. <form>
  13. <input type=button value="Open Windows" onclick="open_win()">
  14. </form>
  15. </body>
  16.  
  17. </html>
  18.  
Jun 8 '10 #2
As you can see, my one website is not a website, it's a javascript banner code so I cannot open it with window.open
Jun 9 '10 #3

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

Similar topics

2
by: Laura | last post by:
I just need to install the DB2 client in a solaris machine. The machine has not installed an open windows environment so the installation should be done in character mode. Is it posible? How could...
1
by: Ryan Hubbard | last post by:
I would like to get the list of open windows using VBA in access. Is there a collection which holds these? I know the Forms colletion hold open forms but what about Query window results? Is...
1
by: Robert Misiak | last post by:
Is it possible (using either managed or unmanaged code) to get an array of an application's currently open windows? Thanks, Robert
2
by: Paul Steele | last post by:
Is there any way to check for open Explorer windows and if any are found, tell Windows Explorer to close them. I don't want a brute force method of killing Explorer and letting it restart. I'd...
2
by: M O J O | last post by:
Hi, I need to to get the caption of all open windows. Not only for my application, but for all running programs. I know it has something to do with Win32 EnumWindows, but I've tried some...
0
by: quinalnking | last post by:
Hello All, I am working on a project in VB 2005 and would want to have a list of open windows on a remote computer on my LAN. Can anyone guide me to it? I tried making a standalone app and...
3
by: Colin Williams | last post by:
Hi I am trying to open windows explorer at a specific path on a server. Path is not found whe run. It works ok using a local path. How do i address a server? Code as follows; {...
13
by: robert.waters | last post by:
Do you have your users rely on the windows taskbar to manage/navigate between the forms they have open, or do you provide another (more robust) method? Does anyone use a custom navigation system...
4
by: terrybell105 | last post by:
Is there a way I can open Windows Explorer at a specific folder, size the window, and position it in relation to the (already opened) Access window? I have a client who wants this capability. It...
2
MrPickle
by: MrPickle | last post by:
I am trying to get all open windows on windows. I have looked around and seen that I should use EnumWindows and EnumWindowsProc so I whipped up this code to test it but it tells me there's 300-400...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.