![]() |
Open new file in current window
I have a window open, let's say index.html.
On the page I have a link that executes a javascript. I want the javascript to open file new.html in the same window that index.html was displayed in. How do I do this? Everything I try opens a new window. I appreciate any help you can offer. Thanks! |
Re: Open new file in current window
Richard A. Melia wrote:
> I have a window open, let's say index.html. > On the page I have a link that executes a javascript. > I want the javascript to open file new.html in the same window that > index.html was displayed in. > How do I do this? > Everything I try opens a new window. > > I appreciate any help you can offer. > Thanks! > > document.location.href = "new.html"; -- Randy Chance Favors The Prepared Mind comp.lang.javascript FAQ - http://jibbering.com/faq/ |
Re: Open new file in current window
Thanks, Randy.
You are a savior! "Randy Webb" <hikksnotathome@aol.com> wrote in message news:pfCdnSeQ9omElh3d4p2dnA@comcast.com... > Richard A. Melia wrote: > > > I have a window open, let's say index.html. > > On the page I have a link that executes a javascript. > > I want the javascript to open file new.html in the same window that > > index.html was displayed in. > > How do I do this? > > Everything I try opens a new window. > > > > I appreciate any help you can offer. > > Thanks! > > > > > > document.location.href = "new.html"; > > -- > Randy > Chance Favors The Prepared Mind > comp.lang.javascript FAQ - http://jibbering.com/faq/ |
| All times are GMT. The time now is 10:13 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.