'add link popup on input buttom submit
i want to add a popup link on input buttom submit, and open the popup in the same window when i click on the button, i tried onclick="window.location.href = '#popup1' but the popup desappear in 1 second. I also tried the code below :
<input type="submit"
name="submit" value="Découvrir le Proxim'IT" onclick="popup()">
<script type="text/javascript">
function popup(){
window.open("#popup1",'_blank');
}
</script>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
