Forum Moderators: open

Message Too Old, No Replies

Need Help Creating HTML Confirmation Page - Not Alert Box

         

RegGFX

4:55 pm on Sep 1, 2006 (gmt 0)

10+ Year Member



I hope this doesn't stump the Javascript Forum, but i need help on creating an HTML Confirmation page.

Instead of having an alert box confirmation i'm trying to create an HTML confirmation page for the user.

If someone out there could help me re-write or modify the code below that does the exact same thing as an ALERT box to HTML confirmation page that would be great...


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>HELP WITH HTML Confirmation Page</title>
</head>
<body>
<div align="center">
<p>
<script type="text/javascript" language="JavaScript">
<!--
function LinkConfirm (loc)
{
var vresult = confirm ("I WISH THIS WAS AN HTML CONFIRMATION PAGE\n\nTo remain at our site, click Cancel. \n\nTo continue on to the page \nyou just selected,\nclick OK\n\nIf you click Yes, please wait briefly while page loads.\n\nThank You.");

if (vresult == true)

{
/*Opens to URL IN NEW WINDOW*/
window.open('http://www.yahoo.com');
}

}
// -->
</script>
I wish this would would take me to an HTML Confirmation Page<br>
NOT an Alert Box Confirmation<br>
Please Advise... Thanks<br>
<br>

<input type=button name=btnPrint id=btnPrint value="Go to Links" onClick="LinkConfirm();return false;">
</p>
<p><a href="javascript:void(0)" onClick="LinkConfirm();return false;">Click To Begin</a>.
</p>
</div>
</body>
</html>

Anyone who has done something similar PLEASE Advise or give me a better example that works as an HTML confirmation page and not an Alert box confirmation
THANKS

Fotiman

8:08 pm on Sep 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You might look into the Yahoo UI library [developer.yahoo.com]. Particularly, the Container [developer.yahoo.com] and SimpleDialog example [developer.yahoo.com].

RegGFX

3:00 pm on Sep 5, 2006 (gmt 0)

10+ Year Member



I'll take a look at that.... Thanks for the tip... this is at least a start

Thanks