hi,
In my internet explorer the onclick =window .close() is working in my home(i have used html control instead of asp control).. but in my office its not working because here we r using mozilla firefox...but here too its working in internet explorer..but i need to show this in mozilla browser
so any one can help me to do this....

Recommended Answers

All 4 Replies

you can do window.close, this.close. It won't matter if you place them like this:

onclick="window.close;this.close;return false;"

I wish I had your brain SheSaidImaPreggy lol! was wanting this answer too!

To avoid errors, you should put it into a function:

function tryClose()
{
Try
{
window.close();
}catch(e){
this.close();
}
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.