mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-15 14:23:45 +08:00
30 lines
760 B
HTML
30 lines
760 B
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<title>Test CDATA in script</title>
|
|
</head>
|
|
|
|
<body>
|
|
<script language=javascript>
|
|
//
|
|
// function gotoit(loc) {
|
|
// loc = loc.replace("11223344", "57286156");
|
|
// loc = loc.replace("44332211", "84163148");
|
|
// location.href = loc;
|
|
// }
|
|
// <a href="JavaScript:;" onClick="window.location.replace('newurl.html')"> change pages </a>
|
|
//
|
|
// document.location.replace(location.href+location.search+"&kill="+id);
|
|
function trashit(id) {
|
|
if (confirm("Remove item from Binder?")){
|
|
s = new String(location.href);
|
|
s = s.replace(/&kill=[0-9,a-z,A-Z]+/,"");
|
|
document.location.replace(s+"&kill="+id);
|
|
return true;
|
|
}
|
|
else return false;
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|