GoToURL
You can review the details on the goToURL JavaScript function.
Description
This JavaScript function opens a specified URL in a new window.
Syntax
goToURL(URLInput)
Input parameters
URLInputObj - Optional. Name of the input tag that contains the URL specified by the user. If not passed, the function just returns.
Return value
None.
Example
This example shows how the goToUrl() function opens the order instruction screen in a new window.
<td>
<input type="text"
<%=yfsGetTextOptions("xml:/Order/Instructions/Instruction_"
+ InstructionCounter + "/@InstructionURL", "xml:/Instruction/@InstructionURL",
"xml:/Order/AllowedModifications")%>/>
<input type="button" class="button" value="GO"
onclick="javascript:goToURL('xml:/Order/Instructions/
Instruction_<%=InstructionCounter%>/@InstructionURL');"/>
</td>