Open Popup Window in the Center of the screen.
=============================================
function OpenPop(ItemID)
{
var LeftPosition = (screen.width) ? (screen.width-505)/2 : 0;
var TopPosition = (screen.height) ? (screen.height-250)/2 : 0;
window.open(‘Pop_QuoteInfo.aspx?id=’+ItemID,’MyTitle’,’height=250,width=505, top=’+ TopPosition +’, left=’+LeftPosition+’, scrollbars=yes, resizable=yes, status=no’);
}
Javascript Trim() Function
=========================
function trim(inputString) {
// Removes leading and trailing spaces from the passed string. Also [...]
Filed under: Default Button, Javascript, Trim | Leave a Comment »