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

Opening a new window in javascript

121 100+
Hello All,
I have 3 linkbuttons, depending upon which one user clicks ( + another different criteria's), i create a string (path).

like
Expand|Select|Wrap|Line Numbers
  1.  var detailedresults="window.open('abc.aspx?ReportPath=/def/ghi','ReportWindow','status=yes,location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes');"; 
and i am struck after this.

as you can see i have a path in variable detailedresults, what should i do or is their any function in javascript where i can pass this path to open in new window.

Any help will be appreciated

Regards
Jay
Oct 12 '10 #1
3 1190
JKing
1,206 Expert 1GB
You don't need the quotes around your call to window.open.
Oct 12 '10 #2
jay123
121 100+
Sorted..

Silly me.. need to use
Expand|Select|Wrap|Line Numbers
  1. window.open(URL, 'WindowName', window specification) 
google: window.open in javascript and you'll get thousand examples..
Oct 12 '10 #3
jay123
121 100+
Thanks JKing..
Oct 12 '10 #4

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

Similar topics

1
by: John | last post by:
HI, I was wondering if it is possible to target a named anchor in a frame when opening a new window with a javascript function? has anyone actualy been able to do this? Thanks in advance for...
10
by: -DRB- | last post by:
Hi all, I'm very much an amateur designing a page (for free!) for a friend, so any help offered would be hugely appreciated. I'm aiming to open a maximised window (and isn't that fun...) and...
3
by: Robert Atkinson | last post by:
Does anyone know how to replace <a href="url" target="_blank"> with window.open, keeping the window settings the same, i.e. same size, same toolbars, etc. I've tried document.open, and...
2
by: Daniele Baroncelli | last post by:
Hi guys, I am trying to find out how to position an opening window in Internet Explorer. While in Netscape/Mozilla/Firefox exist the options screenX and screenY for the open method of the...
6
by: develop | last post by:
Hi, Can a window be opened without a titlebar? Can an alert message box be opened without a titlebar and an OK button? I'm trying to display something like a tooltip when the onclick event...
7
by: mg | last post by:
Once opening WebForm2 from WebForm1 using Response.Write("<script language='javascript'>window.open ('WebForm2.aspx','two','menubar=no');</script>"); how can I close WebForm1?
7
by: mg | last post by:
I need to first open WebForm2 from WebForm1 and then close WebForm1 without the end user having to press an OK button before the close can occur. For example, possibly ...
5
by: Roger Withnell | last post by:
This is a framed webpage with the navigation bar in "NavBar" and the main window in "Main". When opening a new page in "Main" from "NavBar" with: function OpenFrameWindow(src) { var...
2
by: Joe Sent Me | last post by:
I have opened a new window and now want to change something in the newly opened window. I am doing this....... <area...
1
by: deararuns | last post by:
i hav a window wit a button and text box.. Then am opening a new window... suppose if i type somethin in a first window's text box.. and click the button.. the value typed in the text box shoult...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.