Id like this button to open the website in a New window.. Right now it opens in the same page. The code below is what I have in my html. the onclick event will call the setMyAdd function.
<input width="167" type="image" height="45" value="Click me" src="/portals/0/schedappnt.png" id="btn3" onclick="setMyAdd(); return false;" />
This is what I have in my javascript :
<script language="javascript">
var myLink = "";
function hideMe() {
document.getElementById('btn3').style.visibility='hidden';
}
function setMyAdd() {
location.href=myLink;
}
function checkForChange() {
// var buttonSelected=selList.value;
var buttonSelected = document.getElementById('selList').value;
// alert("Option Selected is : " + buttonSelected );
if (buttonSelected=="optx") {
myLink = "/HOME/ScheduleanAppointment/tabid/83/Default.aspx";
document.getElementById('btn3').style.visibility='visible';
} else {
myLink = "http://offsiteschedule.zocdoc.com/remote/schedulePopup.aspx?professionalId=0&providerId=10754&locationId=20113&repeatPatient=True";
document.getElementById('btn3').style.visibility='visible';
}
}
</script>
<script>
What do I need to modify so it opens in a new window?