I have this function:
<SCRIPT language="JavaScript">
<!--
function go_there()
{
var where_to= confirm("Do you really want to go to this page??");
if (where_to== true)
{
window.location="https://www.sandbox.paypal.com/xxx开发者_JS百科x";
}
else
{
window.location="#";
}
}
//-->
</SCRIPT>
and this on the button:
<a href="javascript:void(0)" class="signup_button3" onClick="go_there()"><span class="floatbutton">Get It! $10</span></a>
I know this is a simple thing involving setting up arguments correctly, but I'm still quite new and trying to figure this out...
I will have several buttons on the same page and when user clicks the buttons, I want the same popup to happen, but they will be taken to a different paypal checkout for each button. Can you show me how to do that?
And lastly, can the popup button handle things like unordered lists?
Thank you! Joel
Edit:figured out my first issue and so edited question...sorry for the confusion!
<input type="button" onclick="go_there('http://...')" value="press me">
<script type="text/javascript">
function go_there(loc)
{
var where_to= confirm("Do you really want to go to this page??");
if (where_to)
{
document.location=loc;
}
}
</script>
I'm not clear on your part about ordered lists. pop-ups are HTML pages, like any other.
精彩评论