Revision 1284, 246 bytes checked in by daisuke, 14 years ago (diff) |
---|
Line | |
---|---|
1 | var func = function () { |
2 | var index = document.URL.indexOf("?", 0); |
3 | if(index >= 0) |
4 | { |
5 | window.location = document.URL.substring(index+1,document.URL.length); |
6 | } |
7 | } |
8 | |
9 | |
10 | if(window.addEventListener) |
11 | { |
12 | window.addEventListener('load', func, false); |
13 | } |