Tuesday, May 19, 2009

hide page name of the defaul page from URL using JS

/* +++++++++++++++ script type="text/javascript" +++++++++++++++ */
var testremove = location.href.toLowerCase().indexOf("default.aspx");
if (testremove != -1)
{location.replace(location.href.substring(0,testremove))};
/* --------------- /script --------------- */
/* thnx rakib :) */

No comments: