Want to display javascript validation messages inside an html popup window which would be a seperate html page.currently it is displayed on the same page from where it has been called.
$("#getStarted").val('Try xxxx for Free');
$('#message1').text('User ' + emailID + ' already exists.');
$("#stRegister").val("");
document.getElementById("stRegister").focus();
<input name="stRegister" id="stRegister" type="email" class="registerinput" placeholder="Enter your business email ID" onkeypress="$('#message1').text('');">
<div class="col-md-4 col-md-offset-6 hidden-xs hidden-sm">
<div style="margin-left:8px;" class="alerts" id="message1">
</div>
</div>