jquery - Popup message with location.replace -
i trying redirect user page upon registeration using next line:
window.location.replace(value2);
where value2 url. attach message appears popup window it. thought how can achieved?
try this
var value2 = "samp2.php?success=yes"; window.location.replace(value2);
in samp2.php
write in first line
if(isset($_get['success']) && $_get['success'] == "yes") { print '<script type="text/javascript">'; print 'window.onload = function(e){'; print 'alert("welcome page 2")'; print '};'; print '</script>'; } //header("refresh:1,url=samp.php"); // optional
jquery ajax window
No comments:
Post a Comment