• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Closing of Netscape browser??

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
I have one html file which is not support Netscape browser for that I embeded a alert script in my html file now I want when user click on "ok" button of alert message it should close the Netscape borwser.Can any one plz give me the code for that.Below r my codes:-
if (navigator.appName == "Netscape")
{
alert("This Page does not support Netscape,Plz use IE5 and above");

}
Thanks in Advance
Bikash
 
Ranch Hand
Posts: 319
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
This should work.
if (navigator.appName == "Netscape")
{
alert("This Page does not support Netscape,Plz use IE5 and above");
window.close();
}
 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sudharsan,
Thanks for your help.
Regards
Bikash
reply
    Bookmark Topic Watch Topic
  • New Topic