Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Wanted to achieve F11 browser feature in ASP.NET Application

 
Thread Tools Search this Thread
Old 08-18-2006, 07:42 AM   #1
Default Wanted to achieve F11 browser feature in ASP.NET Application


Hi all,
I have developed an application in ASP.NET. I wanted that whenever a
user comes to my website, it opens browser in F11 mode.
I find the code to open browser in F11 mode (its javascript) but this
can be done in window.open method of javascript, but i don't want to
open a new window instead wanted that existing window opens as full
screen (as through F11).

Did some R & D but get no such solution, so what trick i decided to do
is:
As some user access the website, open website homepage in new window
using window.open method and closes the previous one, its ok but before
closing the previous browser window, it prompts a message like that
opener is going to close, Are you sure... with YES and NO buttons. I
need to supress this prompt, Is there anyway to supress this.
Is there some way i pass some parameter for YES and user don't need to
press it

Waiting for a favourable response.

Regards,
Imran Ghani.



imghani
  Reply With Quote
Old 08-18-2006, 08:46 AM   #2
Laurent Bugnion
 
Posts: n/a
Default Re: Wanted to achieve F11 browser feature in ASP.NET Application
Hi,

imghani wrote:
> Hi all,
> I have developed an application in ASP.NET. I wanted that whenever a
> user comes to my website, it opens browser in F11 mode.
> I find the code to open browser in F11 mode (its javascript) but this
> can be done in window.open method of javascript, but i don't want to
> open a new window instead wanted that existing window opens as full
> screen (as through F11).
>
> Did some R & D but get no such solution, so what trick i decided to do
> is:
> As some user access the website, open website homepage in new window
> using window.open method and closes the previous one, its ok but before
> closing the previous browser window, it prompts a message like that
> opener is going to close, Are you sure... with YES and NO buttons. I
> need to supress this prompt, Is there anyway to supress this.
> Is there some way i pass some parameter for YES and user don't need to
> press it
>
> Waiting for a favourable response.
>
> Regards,
> Imran Ghani.


As usual when it comes to security, you need to stop for a while and
think, from a user perspective, if what you try to achieve is good. The
obvious answer is no, because by closing the original window, you

- lose everything the user did until now (history, back and forward buttons)
- allow malicious scripters to exit the browser (not just close the
window, but really end the process)

There is no workaround to asking the user if he wants you to change his
browser's appearance, which is good. You might find web pages saying
that it is possible anyway, but they all rely on security holes which
will be closed one day or the other, if they're not already.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch


Laurent Bugnion
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript on Closing the browser for ASP.NET srivatsahg Software 0 03-02-2009 10:46 AM
want to display .chm in browser control of ASP.NET 2.0 pratibhaskhaire General Help Related Topics 0 02-14-2008 06:23 AM
ASP.NET 2.0 application does not run in WIN2k3 johnfraj Software 0 04-19-2007 08:27 AM
ASP.NET with User Interface Process Application Block robinp Software 0 03-05-2007 10:01 AM
ASP.NET application not working yogesh.sind Hardware 0 10-03-2006 09:55 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46