This is as simple as this.
Use window.open()
:
Function description:
name
is a name of the window. Following names are supported:
_blank
– URL is loaded into a new tab. This is default._parent
– URL is loaded into the parent frame_self
– URL replaces the current page_top
– URL replaces any framesets that may be loaded