Question 1. I have a form and on submit it redirects to another site. Is it possible to open that site in a new tab instead of the same page? I have tried this js code and it doesn't seem to work.
if() {
$get_url = 'https://www.google.ca/';
?>
<script>
window.open('<?php echo $get_url; ?>','_blank');
</script>
<?php
}
Question 2.
Is it possible to have a extend popup to another site using a unique link? Take the above google link for example. Is it possible to add new code at the end of that link url which will show a popup window or something on that google page if only visited through that link?