Paste2
Create Paste
Followup Paste
QR
var
newPath
=
window
.
location
.
pathname
;
alert
(
newPath
);
var
res
=
newPath
.
search
(
/pageCounter=-?(\d)/i
);
if
(
res
==
-
1
){
newPath
=
newPath
.
"&pageCounter="
+
postData
.
pageCounter
;
}
else
{
newPath
=
newPath
.
replace
(
/pageCounter=-?(\d)/i
,
"i"
);
}
Please enable JavaScript to view the
comments powered by Disqus.
Comments powered by
Disqus