Hi!
I want to submit (onclick) in a javascript function and open a new window in it (window.open). But i want to send to the new window the server time of the submit action.
ex.:
<HTML
<BODY BGCOLOR="#FFFFFF">
<SCRIPT language='javascript'>
function popup(){
var token=<%=DateDiff("s", "01/01/1970 00:00:00", Now)%>;
var myString = 'window.open(myString,"test","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=800");
}
<form name="frmMain" method="POST">
<input type="submit" value="submit" name="Submit" onClick="popup(this.form)">
</form>
</BODY>
</HTML>>
The problem in this exemple is the asp part is execute when the page is loaded instead of when the submit is clicked
Is there a way to fix that
I want to submit (onclick) in a javascript function and open a new window in it (window.open). But i want to send to the new window the server time of the submit action.
ex.:
<HTML
<BODY BGCOLOR="#FFFFFF">
<SCRIPT language='javascript'>
function popup(){
var token=<%=DateDiff("s", "01/01/1970 00:00:00", Now)%>;
var myString = 'window.open(myString,"test","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=800");
}
<form name="frmMain" method="POST">
<input type="submit" value="submit" name="Submit" onClick="popup(this.form)">
</form>
</BODY>
</HTML>>
The problem in this exemple is the asp part is execute when the page is loaded instead of when the submit is clicked
Is there a way to fix that