473,563 Members | 2,504 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to open page in new window using html

hi

i am creating one site and i am not allowed to use client side
scripting in site and i have one link in my one page. when user clicks
on this link the target page must be opened in another window. is it
possible to do it without using javascript,vbsc ript???

thxs for your help in advance.

Jul 17 '05 #1
8 5674
vishal wrote:
hi

i am creating one site and i am not allowed to use client side
scripting in site and i have one link in my one page. when user clicks
on this link the target page must be opened in another window. is it
possible to do it without using javascript,vbsc ript???

thxs for your help in advance.


<a href="page.html " target="_blank" >page</a>

JP

--
Sorry, <de*****@cauce. org> is a spam trap.
Real e-mail address unavailable. 5000+ spams per month.
Jul 17 '05 #2
thxs

Jul 17 '05 #3
On 28 Mar 2005 00:19:39 -0800, "vishal" <vi************ @yahoo.co.in>
reverently intoned upon the aether:
hi

i am creating one site and i am not allowed to use client side
scripting in site and i have one link in my one page. when user clicks
on this link the target page must be opened in another window. is it
possible to do it without using javascript,vbsc ript???

thxs for your help in advance.

<a href="clarity.p hp" target="new">Cl arity</a>

Different target, same concept.

enjoy,

Sean
"In the End, we will remember not the words of our enemies,
but the silence of our friends."

- Martin Luther King Jr. (1929-1968)

Photo Archive @ http://www.tearnet.com/Sean
Last Updated 29 Sept. 2004
Jul 17 '05 #4
vishal wrote:
i am creating one site and i am not allowed to use client side
scripting in site
Who's stopping you?
and i have one link in my one page. when user clicks on this
link the target page must be opened in another window. is it
possible to do it without using javascript,vbsc ript???


No, and it's not possible with those languages either. What happens
with your page once the reader has downloaded it is pretty much his
business.

Jul 17 '05 #5
One quick glance of an experienced eye allowed to understand the blurred
and almost unreadable John Dunlop's handwriting:
vishal wrote:
i am creating one site and i am not allowed to use client side
scripting in site


Who's stopping you?


I suppose there might be some compatibility issues for example. I had
such a project once.
and i have one link in my one page. when user clicks on this
link the target page must be opened in another window. is it
possible to do it without using javascript,vbsc ript???


No, and it's not possible with those languages either. What happens
with your page once the reader has downloaded it is pretty much his
business.


?? Am I missing something here, or have you just ignored the
window.open() function of JavaScript?

Besides, pure HTML should be enough:
<A href='http://some.page' target='_new'>L ink TExt</A> will open the
http://some.page in a new window when the user click this link.

Cheers
Mike
Jul 17 '05 #6
Michal Wozniak wrote:

[about opening new windows]
?? Am I missing something here, or have you just ignored the
window.open() function of JavaScript?
Unless you're on an intranet where you can control these things,
there's no knowing that javascipt's available or that window.open does
anything if javascript is available -- even on windowing systems.

http://www.infimum.dk/HTML/JSwindows.html#ref_3_5
Besides, pure HTML should be enough:
<A href='http://some.page' target='_new'>L ink TExt</A>
'_new' violates the spec, as only four target names begin with
underscores: namely, '_blank', '_self', '_parent', and '_top'. The
horse's mouth:

http://www.w3.org/TR/html401/types.h...e-frame-target
will open the http://some.page in a new window when the user click
this link.


Sorry, but I can't agree with your 'will', because sometimes it won't;
nor can I agree with the spec, which neatly hedges the issue by saying
'should'. How I interact with a page is nobody's business but mine.

Jul 17 '05 #7
One quick glance of an experienced eye allowed to understand the blurred
and almost unreadable John Dunlop's handwriting:
Michal Wozniak wrote:

[about opening new windows]
?? Am I missing something here, or have you just ignored the
window.open() function of JavaScript?


Unless you're on an intranet where you can control these things,
there's no knowing that javascipt's available or that window.open does
anything if javascript is available -- even on windowing systems.

http://www.infimum.dk/HTML/JSwindows.html#ref_3_5
Besides, pure HTML should be enough:
<A href='http://some.page' target='_new'>L ink TExt</A>


'_new' violates the spec, as only four target names begin with
underscores: namely, '_blank', '_self', '_parent', and '_top'. The
horse's mouth:

http://www.w3.org/TR/html401/types.h...e-frame-target


Right, my mistake.
will open the http://some.page in a new window when the user click
this link.


Sorry, but I can't agree with your 'will', because sometimes it won't;
nor can I agree with the spec, which neatly hedges the issue by saying
'should'. How I interact with a page is nobody's business but mine.


Well, I agree, but I don't think the original poster wants to write a
page that will work on Lynx, TV-Viewers and so on. Of course, JavaScript
works only when it is enabled, but you have written "that it [namely:
opening new windows] is not possible in those languages". It is POSSIBLE
but there is no way of knowing if it is available/enabled on the user's
side. And that's all I wanted to say with "window.ope n" here.

Now, to the opening of new windows: come on, you could say that it is
solely your (user's) business how they want the page to be coloured, but
the developers have to write pages that do the job - on most of the
user's setups. You can tell your browser to display both black and white
as green, but you have to know that this will render some pages
unviewable for you.
Same thing with windows - you have the right to disable whatever the
settings you like, but that narrows the amount of pages you could view
without problems.
I do not like pop-ups. I do not use them. But the original poster was
asking HOW to do it. And you answered it is not possible - which is
obviously not true.
And I would like to remind you that 99% of pop-ups are written in
JavaScript. And the OP wanted to do this without it - which suggests he
had no *evil* things in mind. :) I have nothing against opening a new
window upon CLICKING a link, it can even help sometimes, besides you can
always use tabs. A new window or tab opened this way is NOT a pop-up.

Man, getting OT here. :)

Cheers
Mike
Jul 17 '05 #8
Michal Wozniak wrote:
Of course, JavaScript works only when it is enabled, but you
have written "that it [namely: opening new windows] is not
possible in those languages".
Maybe I wasn't clear. When I said it wasn't possible, I wasn't
referring to the opening of new windows generally, but specifically the
_forced_ opening of new windows. vishal said the page _must_ be opened
in a new window, from which I inferred that he, or more likely those
whose rules he is working under, wouldn't be happy if somebody followed
the link in the same window.
It is POSSIBLE


No disagreement there from me.

Jul 17 '05 #9

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

Similar topics

1
3208
by: Wes | last post by:
This should be really simple ... but how to do it has been eluding me ... I am writing an ASP.NET application and am using ASP.ImageButtons & ASP.Buttons. Instead of redirecting to another page (ie. Response.Redirect("xxx.htm")) I want to open the page in another window. Sounds pretty basic, but ..... If you can help, I'd sure...
1
3334
by: Matt | last post by:
My problem is when the user click the submit button, it will launch another new window for the request page. I want to confirm we cannot use JavaScript open window functions to open a request page? The following page2.asp won't output the value entered in page1.asp. However, if we do <form action="page2.asp" method="get" target="_blank">, then...
18
8820
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page (same folder). The cookie is not received. Can someone explain why? I worked around this by adding a cache-control header with a value of...
6
12149
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 where I can set the window height, statusbar=no, etc? Thanks, -Luke
2
3948
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? I'm a relative PHP n00b. This code works fine on Opera & Mozilla under Linux, but fails for both Netscape & IE under Windows: <script...
10
11203
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="#" onClick="window.open('/cgi-bin/displayimage.cgi?/store/demo/image.jpg&YOUR+PRODUCT%27<b>S+NAME+GOES', 'fullimage', 'WIDTH=420,HEIGHT=405,status=0')"> The original window should not reload, but...
7
3655
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses pageA.html 2. User clicks on menu link to open popup.html 3. pageA.html checks if popup.html is already open. It is not, open
13
3531
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains some javascript code that calls window.open. I pass the resource url of page B to Page A's window.open call. Page B is then loaded and executed but...
6
12065
by: bushi | last post by:
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...
0
7658
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7877
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7631
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7943
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6238
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5479
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3615
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2077
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.