Menu
Hi,
I have written javascript function (getNewURL) where the purpose is to create a string that contains the URL that the user is to be sent to. I cannot hard code the link in the <a href > tag and must do this dynamically by calling the function.
My html code reads…<a href=”javascript:getNewURL();”>
I have tested the function by using the document.write statement and am creating the proper string. How can I [B]open
In my javascript once the string is created I a have tried both
return newURL;
and
document.open(newURL);
Any suggestion would be appreciated. thanks