Event nextPage
<html> <head> <script language="JavaScript"> function function1() { var m = event.nextPage; alert(m); } </script> </head> <body bottommargin="150"> <input type="Button" id="myB" value="Click here" onClick="function1();"> </body> </html>