This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes document.location.href Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "document.location.href" Watch "document.location.href" New topic


Harsha Jay
Ranch Hand

Joined: Jul 23, 2001
Posts: 177
When I call "document.location.href" from my window and fire of a call to the servlet to clean my session variables, why does this action close my current window? I do not want to close the window, is there a way to keep the current window open and call the 'location'?
Any thoughts?
reply greatly appreciated
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
What do you mean by closing? Is it literaly closing the browser so you have to open a new one? Or do you mean closing as it is loosing your session?
I agree. Here's the link:
subject: document.location.href
jQuery in Action, 3rd edition