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>

1 comment on"GoToURL"

  1. Thanks for finally talking about >GoToURL – Watson Customer Engagement | For Developers <Loved it!

Join The Discussion

Your email address will not be published. Required fields are marked *