HighTechTalks DotNet Forums  

window.open

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss window.open in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Vik
 
Posts: n/a

Default window.open - 09-16-2005 , 02:56 PM






I want to open a new page in the current window (that displays an .aspx
page) using the window.open(url, name,...) method. How can I set the name of
the current window to use it as the parameter of the open method?

Thanks.



Reply With Quote
  #2  
Old   
Michael Harris \(MVP\)
 
Posts: n/a

Default Re: window.open - 09-16-2005 , 06:36 PM






Vik wrote:
Quote:
I want to open a new page in the current window (that displays an
.aspx page) using the window.open(url, name,...) method. How can I
set the name of the current window to use it as the parameter of the
open method?

Check the docs for the sName parameter of window.open().

open Method (window) (Internet Explorer - DHTML)
http://msdn.microsoft.com/workshop/a...ods/open_0.asp


--
Michael Harris
Microsoft MVP Scripting






Reply With Quote
  #3  
Old   
Bruce Barker
 
Posts: n/a

Default Re: window.open - 09-16-2005 , 06:37 PM



window.open() is used to create a new window, and cannot reload the current
window. to reload the current window use:

document.location.href = "newpage.aspx";

-- bruce (sqlwork.com)

"Vik" <viktorum@==yahoo.com==> wrote

Quote:
I want to open a new page in the current window (that displays an .aspx
page) using the window.open(url, name,...) method. How can I set the name
of the current window to use it as the parameter of the open method?

Thanks.




Reply With Quote
  #4  
Old   
Vik
 
Posts: n/a

Default Re: window.open - 09-19-2005 , 10:06 AM



Thanks, "_self" as the sName does the work.
My books on JavaScript don't give the list of the available sName values as
the MSDN does.

Vik

"Michael Harris (MVP)" <mikhar at mvps dot org> wrote

Quote:
Vik wrote:
I want to open a new page in the current window (that displays an
.aspx page) using the window.open(url, name,...) method. How can I
set the name of the current window to use it as the parameter of the
open method?


Check the docs for the sName parameter of window.open().

open Method (window) (Internet Explorer - DHTML)
http://msdn.microsoft.com/workshop/a...ods/open_0.asp


--
Michael Harris
Microsoft MVP Scripting







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.