Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can we call a URL using javascript 1

Status
Not open for further replies.

amirak171

Programmer
Dec 15, 2006
8
CA
How can we call a URL using javascript:

i need to call a url something like this:

function abc_fn
{
// call }

how can we do this in js?
thanks in advance
 
thanks lee

i want the person to be directed to lets say abc.com when this function is called.

 
Try
Code:
function redirect(URL)
{
//where you pass the URL as "[URL unfurl="true"]http://www.abc.com"[/URL]
location.href = URL;
}

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top