• 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

window.open()?

 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I want to open a new window using JS, but I want the window target to be the current window, not open a new one. Is this possible?

current code...

<html>
<body>

<body>
<script>
open('stopSearch.do?method=Status', ' ',
"menubar=yes, scrollbars=yes, directories=yes, toolbar=no");

</script>

</body>
</html>
[ April 19, 2005: Message edited by: M Burke ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can not remove toolbars on the current window.

Eric
 
M Burke
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did find an answer. This only works for IE 6x. Use a stub to launch the app.

<html>
<body>

<script type="text/javascript">
window.open('index.jsp', 'new',
"resizable=yes,scrollbars=yes,status=yes");

self.opener=self;
self.opener.close();

</script>

</body>
</html>
[ April 19, 2005: Message edited by: M Burke ]
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SP2 should block that....
reply
    Bookmark Topic Watch Topic
  • New Topic