Allows you to format the target window of a form from the form's target property. This allows for the use of window properties, variables, and other data manipulation to effect these options.
Add the below code to the <body> section of your page:
<scriptlanguage="javascript"type="text/javascript"> /* Visit http://www.yaldex.com/
for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
// test variables var
myHeight =200; var
isResizable =true;
function
createTarget(form){ _target =form.target; _colon =
_target.indexOf(":"); if(_colon
!=-1){ form.target=
_target.substring(0,_colon); form.args
=
_target.substring(_colon+1);
}elseif(typeof(form.args)=="undefined"){ form.args
="";
} if(form.args.indexOf("{")!=-1){ _args =form.args.split("{"); form.args
=
_args[0]; for(var
i =1;
i <
_args.length;i++){ _args[i]=
_args[i].split("}"); form.args
+=eval(_args[i][0])+
_args[i][1]; }
} form.args
=form.args.replace(//g,""); _win =window.open('',form.target,form.args); if(typeof(focus)=="function") _win.focus(); returntrue;
} // End --> </script> <!-- Special Notes: -->
<!-- Simply begin the target attribute with a name of your -->
<!-- choice, _blank, _top, etc... followed by a colon and -->
<!-- the window options string used in the window.open -->
<!-- command. Anything in this string enclosed in { and } -->
<!-- will be interpreted as JavaScript. -->