웹브라우저 » Api

seturl

Description

웹브라우저에 URL을 설정하여 해당 URL 페이지를 보여주는 API이다.

Parameters

Parameters Type Description
strURL STRING URL 주소
bEncodeUTF8 BOOL [옵션] URL 주소를 UTF8로 인코딩할지 여부 (기본값: true)

Return Value

Type Description
void 없음

Remark

bEncodeUTF8 파라미터는 옵션 파라미터로 값을 주지 않는 경우 기본값은 true이며, URL과 PostData를 UTF8로 인코딩하여 전송할지 여부를 지정한다.

* 동일 출처(same-origin)가 아닐 경우 security exception이 발생할 수 있다.

로드된 URL이 동일 출처인 경우, 로드된 페이지내 window 오브젝트에 "_xframe_screen_member" 값이 화면 멤버 오브젝트로 자동으로 설정되기 때문에, 아래와 같이 로드된 페이지 내에서 웹브라우저 컴포넌트가 포함된 화면의 함수를 호출할 수 있다.

// 로드된 페이지에서 xframe 화면 함수 호출
if (window._xframe_screen_member) {
	window._xframe_screen_member.test_func("hello");
}

Example

function btnSetURL_on_mouseup() { webCtrl.seturl("http://www.softbase.co.kr"); }

See Also

seturlex

Viewer Ver.

9.1.1.1

Update Date

20230523