async javascript - onclick event gets data from server

S

Steve Richter

what topics, documentation am I looking for to do the following:
- when a button or anchor tag is clicked, I want to call back to the
web server to retrieve the complete url with which to open a new
browser window.

function WindowOpen( url )
{
window.open(
url, 'steve',

'location=no,titlebar=no,height=400,width=400,scrollbars=yes,resizable=yes') ;
}

function Button_OnClick( key )
{
url = GetFullUrlFromServer( key ) ; // how to async connect to
server ??
WindowOpen( url ) ;
}

<INPUT type="button" value="Button"
onclick="Button_OnClick( 'abc123');">

thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top