<SCRIPT LANGUAGE="JavaScript"><!--
var s = window.location.href;
s = s.substr(s.lastIndexOf("/")+1);
alert(s);
//--></SCRIPT>
var s = window.location.href;
s = s.substr(s.lastIndexOf("/")+1);
alert(s);
//--></SCRIPT>
解决方案 »
- extjs 使用 Poxy 请求webService 的Content-Type问题,分不够,请谅解!
- jsp + servlet,servlet中的request.set.attribute()问题
- 请教一个JS中关于汉字的正则验证问题
- javascript函数内部调用自身函数 这样好吗
- 有一个时分秒的控件,我想添加年月日放里面,谁可以改下代码的进来下
- 意外地调用了方法或属性访问
- String.matches() 正则表达试的问题,麻烦看下,谢谢
- 怎样改变Alter函数的标题
- 再ie里,修改右键菜单
- 能用javascript可以实现页面中左右两帧通过一个滚动条同步移动吗?
- 谁有keycode与其所对应的键的值??
- defaultSelected特性应用
<!--
alert(location.href.replace(/.+\//g,''))
//-->
</script>
<script language="JavaScript">
<!--
alert(location.href.replace(/.+\//g,''),'_top','')
//-->
</script>代码,但是需要更正一点,应该是alert(location.href.replace(/.+\//g,''),'_self','')