Hi!
We have a site with stateless logic, and we have all our URLs organized in such way:
http://www.example.com/crm/search.html?sessionid=12345.
But when one opens new window from our site URL - we need to assign a new sessionid to it.
That's why we've created a special button for creating a new windows with new sessionid. But, unfortunately, user still can open link in new page by "open in new window" menu.
Question: Is there any good way to prevent user from opening new windows by himself, allowing doing it only using our procedure?
I have some ideas, but there are not so great:
1. Create JavaScript to add "onclick" event on every <a> tag and do some job in handler. When user select "open in new window" - "onclick" is not fired.
2. Disable right mouse button use on a pages:
document.oncontextmenu = test;
function test() {
return false
}
[edited by: Fotiman at 3:43 pm (utc) on Mar 17, 2011]
[edit reason] Examplified URL [/edit]