User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 423,284 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,250 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1482 | Replies: 4
Reply
Join Date: Mar 2008
Posts: 34
Reputation: priyamsc is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
priyamsc priyamsc is offline Offline
Light Poster

onclick=window.closw()is not working in mozilla firefox...

  #1  
Mar 30th, 2008
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....
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2007
Posts: 1,057
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: onclick=window.closw()is not working in mozilla firefox...

  #2  
Mar 31st, 2008
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 answer pm's.
I answer questions.
I answer quickly.
I answer.
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 47
majestic0110's Avatar
majestic0110 majestic0110 is online now Online
Veteran Poster

Re: onclick=window.closw()is not working in mozilla firefox...

  #3  
Mar 31st, 2008
I wish I had your brain SheSaidImaPreggy lol! was wanting this answer too!
Last edited by majestic0110 : Mar 31st, 2008 at 2:48 pm.
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote  
Join Date: Sep 2007
Posts: 1,057
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: onclick=window.closw()is not working in mozilla firefox...

  #4  
Mar 31st, 2008
To avoid errors, you should put it into a function:
function tryClose()
{
Try
{
window.close();
}catch(e){
this.close();
}
}
I answer pm's.
I answer questions.
I answer quickly.
I answer.
Reply With Quote  
Join Date: Jun 2006
Posts: 12
Reputation: Hosam Kamel is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
Hosam Kamel Hosam Kamel is offline Offline
Newbie Poster

Re: onclick=window.closw()is not working in mozilla firefox...

  #5  
Apr 4th, 2008
try

javascript:window.open(’javascript:window.close();’,'_self’,'’);

and please refer to this link for more details
http://www.interwebby.com/blog/2006/02/04/3/
Thanks,
Hosam Kamel
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 10:34 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC