C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Refreshing the pop up window


Posted Date: 08 Sep 2008    Resource Type: Code Snippets    Category: Javascript

Posted By: Geetha       Member Level: Gold
Rating:     Points: 7



This piece of code will open a pop up if it is not opened. If the pop up is already opened then it will refresh the content of the pop up. This code will work both in IE and Firefox.



var msgWindow = null;
function showFileView(iId)
{
msgWindow = window.open("FileContentView.aspx?fileid="+iId, "tinyWindow", 'status=1, resizable=1, scrollbars=0, width=650,height=480');
msgWindow.focus();
if(!msgWindow.closed)
{
if(navigator.appName == "Netscape")
msgWindow.location.refresh;
else
msgWindow.location.reload(true);
msgWindow.focus();
}
}





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Refresh  .  POP UP  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Validate Email Id with JavaScript
Previous Resource: Validatin date in MM/DD/YY Format using javascript
Return to Discussion Resource Index
Post New Resource
Category: Javascript


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

it support

Contact Us    Privacy Policy    Terms Of Use