Code: Select all
<!DOCTYPE html>
<html>
<head><title></title>
<script type="text/javascript">
function go() {
if ( isEditing() ) {
parent.site9.StateMgr.set( 'ps' );
} else {
window.parent.site9.StateMgr.set( 'ps' );
}
}
function isEditing() {
try {
if ( window.parent.frameElement.s9_workspace ) {
return true;
}
}
catch ( e ) {
}
return false;
}
</script>
</head>
<body style="background:transparent">
<input type="button" onclick="go();return false;" value="Reset States"/>
</body>
</html>