DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Redirecting To New Page Using Javascript

01.28.2012
| 4901 views |
  • submit to reddit
        // Redirecting to  new page using javascript


function goToNewPage(){
                return window.open("GoTo.aspx?Data=" + Data + "", "width=1,height=1,left=5000,top=5000");
}


btnGoToNewPage.attributes.add("onclick","return goToNewPage())