home *** CD-ROM | disk | FTP | other *** search
- function resizeBrowserWindow(width,height) {
- window.resizeTo(width,height);
- }
- function behaviorFunction() {
- return "resizeBrowserWindow";
- }
-
- function canAcceptBehavior() {
- return ("onMouseUp");
- }
-
- function applyBehavior() {
- var width=document.theForm.width.value;
- var height=document.theForm.height.value;
- return "resizeBrowserWindow(" + width + "," + height + ")";
- }
-
- function inspectBehavior(ResizeFunctionCall) {
- var argArray = new Array;
- argArray = extractArgs(ResizeFunctionCall);
- document.theForm.width.value = argArray[1];
- document.theForm.height.value = argArray[2];
- }
-
- function initializeUI() {
- document.theForm.width.focus();
- document.theForm.width.select();
- }
-