SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Oct 2, 2002, 12:52 #1
- Join Date
- Dec 2001
- Location
- oslo
- Posts
- 22
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
deny exit from site, or force exit in new browser window
i've got a bunch of webaplications in use that the users have open in a browser all day. and so far every thing is perfecto. my problems start when the user during the day get emails with links in them... being humans they click those links and some times they "loose" the webaplication from the original browser. this also happens of course when they use their bookmarks etc.
what i would like is to include a javascript that forces a new browser window wtih the new url & leaves the original site as-is if a url is sent to the browser.
:water
-
Oct 2, 2002, 14:21 #2
- Join Date
- Jul 2002
- Location
- Dallas, TX
- Posts
- 2,900
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Can't be done
the onUnload method is the only thing I can think of the could detect such a change, but it cannot be canceled.
Perhaps naming the window will prevent 'clicked-on-elsewhere' links from opening in it. Try it and let me know.
<script>
self.name = sName;
</script>
-
Oct 3, 2002, 00:08 #3
- Join Date
- Jul 2002
- Posts
- 168
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
IE has an advanced option called "Reuse windows for launching shortcuts", unchecking this (if checked) might help.
-
Oct 3, 2002, 03:34 #4
Guest is right. We had the same problem here and that solution cured it. It works across the OS, whether you're in Word, Outlook, IE, etc.. It prevents IE from using a window that's already open.
GDrupal Development -- Hire me!
Drupal Training | Darwin Awards Moderator | Classic Cars
SitePoint | Blog | Rent Games Online | Car | Talent
Bookmarks