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

Derek has posted 2 posts at DZone. View Full User Profile

Get Current Server Name From URL Using Javascript In Domino Web Application

  • submit to reddit
        // Get the Current Server Name from the URL using Javascript for Domino Web Applications

//Get Server
loc1 = location.href;
in1 = loc1.indexOf(".nsf") + 4;
var server1 = Left(loc1,in1);