How to open a new window on click of a button in Java Script
In Category JavaScript
In Java Script, window.open method can be used to open link in a new window. This method can used to open a new window when onclick event of the button is fired. The following example shows how a new window can be opened with a URL.
<form>
<input onclick="window.open('http://somesite.com/')"
type="button" value="Open Window" />
</form>
Recent Comments