• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Opening a new Browser: How?

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can I open a new browser using Javascript? I have tried to do this with 'window.open(..)', but this opens a new window in the same browser (Which is exactly what you expect, by the way). I want to have a new browser, I do not have to take the current browser session with it.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It has been discussed here before, it can not be done. There might be an active X control to do it for IE.
 
Kees van Oosterhout
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was afraid of that.
Thanx for you reply!
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
just want to make sure you know you can do it in a html anchor tag by setting the target attribute.
<a href="url" target="something"
personally i despise when sites open windows without me clicking on something. fortunately mozilla prevents that.
 
Kees van Oosterhout
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Randall, I agree. But it is a requirement to implement. To clarify, it is needed for a intranet application, not internet.
I am well aware of the target attribute, but to my understanding this refers to a frame in a (the current) browser. In my case however, i want to open a new browser.
Thanx for you reply!
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The target attribute can refer to any DOM window, be it a new instance of the browser or a frame or iframe. If for example, you just wanted the link or form to launch a new browser window you could specify

to open a new browser window. This however does not solve the original problem of not carrying the session into the new instance.
hth,
bear
[ November 27, 2002: Message edited by: Bear Bibeault ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic