Monday, September 7, 2009

How to load a document with JavaScript?

Hi Readers,

Thank you for sending me emails.I appreciate it.
Happy holiday to you and your families.

Here is a single function you can use to load a page:

function ViewDocument(strDocument)
{
strDocument = escape(strDocument);
if (strDocument != null) //or strDocument!=undefined
{
//window.open(strDocument,"resizable:yes;scroll:yes;status:no;");
window.open(strDocument);
}
else
{
alert("Document Unavailable");
}
}

Thank you for visiting my blog.

Talley
Web & Windows Developer
Raleigh,NC

No comments:

About Me

My photo
Raleigh, NC, United States
I am a software developer based in Raleigh,NC,USA.I design softwares and systems ;i also do consulting for companies worldwide.I program with these languages:VB.NET 2003/2005/2008;C#;Java(fun),SQL(200,2005,2008);ASP.NET 2.0/3.5;ASP.NET AJAX;ASP.NET MVC;JavaScript;JQuery;Windows Workflow Foundation;Web Services.I have 4 years + in programming.