473,397 Members | 1,972 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.

open a new browser window without using javascript

hi everyone!
i have diplayed my hyperlinks in a iframe.when i redirect
to next page.the next page also open in the same frame,but i want to
open a new browser window,when i click on the link.actually i 'm using
link button control to diplay the hyperlinks.i cant use java script
"window.open()".i need some server side code behind the linkbutton,if
any one knows plz rply soon.

Apr 14 '07 #1
6 12054
Without JavaScript your only real solution is to use a hyperlink with the
target attribute set:
<a href="MyPage.aspx?myparm=1" target="_blank">Click Me</a>
Now this doesn't post back the originating page to the server, however in
the above example MyPage.aspx will cause a server page request and you can
pass it querystring parameters, so in many cases this will work to both open
a new window and process server side code.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"bushi" <bu*******@gmail.comwrote in message
news:11**********************@y5g2000hsa.googlegro ups.com...
hi everyone!
i have diplayed my hyperlinks in a iframe.when i redirect
to next page.the next page also open in the same frame,but i want to
open a new browser window,when i click on the link.actually i 'm using
link button control to diplay the hyperlinks.i cant use java script
"window.open()".i need some server side code behind the linkbutton,if
any one knows plz rply soon.
Apr 14 '07 #2
On Apr 14, 12:10 pm, "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]"
<S...@Orr.netwrote:
Without JavaScript your only real solution is to use a hyperlink with the
target attribute set:
<a href="MyPage.aspx?myparm=1" target="_blank">Click Me</a>
Now this doesn't post back the originating page to the server, however in
the above example MyPage.aspx will cause a server page request and you can
pass it querystring parameters, so in many cases this will work to both open
a new window and process server side code.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsiderhttp://SteveOrr.net

"bushi" <bushra...@gmail.comwrote in message

news:11**********************@y5g2000hsa.googlegro ups.com...
hi everyone!
i have diplayed my hyperlinks in a iframe.when i redirect
to next page.the next page also open in the same frame,but i want to
open a new browser window,when i click on the link.actually i 'm using
link button control to diplay the hyperlinks.i cant use java script
"window.open()".i need some server side code behind the linkbutton,if
any one knows plz rply soon.- Hide quoted text -

- Show quoted text -
thanx steve!
but i can't got ur point,i have solved my problem by using the
following code snippet:

Response.Write("<script type='text/
javascript'>detailedresults=window.open('ad2.html' );</script>");

a little bit problem remains.i want to use variable instead of the
hardcoded page address,as above i have used 'ad2.html'.actually i have
to select the value at run time,
as

Response.Write("<script type='text/
javascript'>detailedresults=window.open(page);</script>");

when i use this piece of code,the page is not redirected.i can solve
it by checking the value of page using if conditions and then use the
address of the corresponding page.
but i dont like such type of hardcoding,if u hav any idea other then
mine plz recommend me,i will wait 4 ur rply anxiously

Apr 14 '07 #3
"bushi" <bu*******@gmail.comwrote in message
news:11**********************@n59g2000hsh.googlegr oups.com...
thanx steve!
but i can't got ur point,
Steve's point is that he was actually trying to answer your question i.e.
how to open a new browser window without using JavaScript - that's what you
said you were looking for...

i have solved my problem by using the
following code snippet:

Response.Write("<script type='text/
javascript'>detailedresults=window.open('ad2.html' );</script>");
There's the problem... You ask for help in opening a new browser window
without using JavaScript (note the title of this thread which you started),
and then you say that you have solved it by using JavaScript...
Apr 14 '07 #4
The new window you are trying to open by streaming javascript from server to
browser will be treated as "bad or unwanted" pop-ups and would be blocked by
most browser by default.

Only client-side started new window due to user's explicit action(cliking)
on client-side is considered "good" pop-up. So, you better follow Steve's
suggestion if you really hate "javascript", or just use client-side
javascript, there is nothing wrong to use it, and you used it in your found
solution anyway.

"bushi" <bu*******@gmail.comwrote in message
news:11**********************@n59g2000hsh.googlegr oups.com...
On Apr 14, 12:10 pm, "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]"
<S...@Orr.netwrote:
>Without JavaScript your only real solution is to use a hyperlink with the
target attribute set:
<a href="MyPage.aspx?myparm=1" target="_blank">Click Me</a>
Now this doesn't post back the originating page to the server, however in
the above example MyPage.aspx will cause a server page request and you
can
pass it querystring parameters, so in many cases this will work to both
open
a new window and process server side code.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsiderhttp://SteveOrr.net

"bushi" <bushra...@gmail.comwrote in message

news:11**********************@y5g2000hsa.googlegr oups.com...
hi everyone!
i have diplayed my hyperlinks in a iframe.when i redirect
to next page.the next page also open in the same frame,but i want to
open a new browser window,when i click on the link.actually i 'm using
link button control to diplay the hyperlinks.i cant use java script
"window.open()".i need some server side code behind the linkbutton,if
any one knows plz rply soon.- Hide quoted text -

- Show quoted text -

thanx steve!
but i can't got ur point,i have solved my problem by using the
following code snippet:

Response.Write("<script type='text/
javascript'>detailedresults=window.open('ad2.html' );</script>");

a little bit problem remains.i want to use variable instead of the
hardcoded page address,as above i have used 'ad2.html'.actually i have
to select the value at run time,
as

Response.Write("<script type='text/
javascript'>detailedresults=window.open(page);</script>");

when i use this piece of code,the page is not redirected.i can solve
it by checking the value of page using if conditions and then use the
address of the corresponding page.
but i dont like such type of hardcoding,if u hav any idea other then
mine plz recommend me,i will wait 4 ur rply anxiously

Apr 14 '07 #5
I've never seen anyone contradict themself so many times with just two
posts.
You explicitly said you need a solution that doesn't just JavaScript or the
window.open method.
Then you ignore my advice that met your requirements and you instead use the
JavaScript window.open method.
But, hey, whatever you're happy with dude.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"bushi" <bu*******@gmail.comwrote in message
news:11**********************@n59g2000hsh.googlegr oups.com...
On Apr 14, 12:10 pm, "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]"
<S...@Orr.netwrote:
>Without JavaScript your only real solution is to use a hyperlink with the
target attribute set:
<a href="MyPage.aspx?myparm=1" target="_blank">Click Me</a>
Now this doesn't post back the originating page to the server, however in
the above example MyPage.aspx will cause a server page request and you
can
pass it querystring parameters, so in many cases this will work to both
open
a new window and process server side code.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsiderhttp://SteveOrr.net

"bushi" <bushra...@gmail.comwrote in message

news:11**********************@y5g2000hsa.googlegr oups.com...
hi everyone!
i have diplayed my hyperlinks in a iframe.when i redirect
to next page.the next page also open in the same frame,but i want to
open a new browser window,when i click on the link.actually i 'm using
link button control to diplay the hyperlinks.i cant use java script
"window.open()".i need some server side code behind the linkbutton,if
any one knows plz rply soon.- Hide quoted text -

- Show quoted text -

thanx steve!
but i can't got ur point,i have solved my problem by using the
following code snippet:

Response.Write("<script type='text/
javascript'>detailedresults=window.open('ad2.html' );</script>");

a little bit problem remains.i want to use variable instead of the
hardcoded page address,as above i have used 'ad2.html'.actually i have
to select the value at run time,
as

Response.Write("<script type='text/
javascript'>detailedresults=window.open(page);</script>");

when i use this piece of code,the page is not redirected.i can solve
it by checking the value of page using if conditions and then use the
address of the corresponding page.
but i dont like such type of hardcoding,if u hav any idea other then
mine plz recommend me,i will wait 4 ur rply anxiously
Apr 14 '07 #6
On Apr 15, 12:49 am, "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]"
<S...@Orr.netwrote:
I've never seen anyone contradict themself so many times with just two
posts.
You explicitly said you need a solution that doesn't just JavaScript or the
window.open method.
Then you ignore my advice that met your requirements and you instead use the
JavaScript window.open method.
When we're at it, that's no window, THIS is a window:
http://ajaxwidgets.com/AllControlsSa...hatClient.aspx
(click the "Start Chatting" button")

..t

Apr 18 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
2
by: venkatesh | last post by:
Hi Members, I have used the below mentioned code to open a html page in a new browser. The window size is 200 x 300. In that browser, I've given code to open another browser of the same size....
2
by: Raptor | last post by:
I'm a complete Javascript n00b, using a snippet I found on the web. I'll probably be buying a Javascript book. What's the authoritative on-line resource for Javascript, like php.net is for PHP? ...
3
by: kaith | last post by:
The following code used to popup a window when I used netscape 4.79. Now I switched to mozilla 1.4 and the window doesn't popup. function newWindow(newContent) { winContent...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
29
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
6
by: VK | last post by:
I'm using window.open method in my script to open poup window. Recently Internet Explorer users reported that the script crashes on their machine with different runtime errors. See the bug:...
5
by: Nathan Sokalski | last post by:
How do I open and change properties of (such as size, position, scroll position, visibility of toolbars, etc.) a browser window? Thanks. -- Nathan Sokalski njsokalski@hotmail.com...
18
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.