Menu
Hi, I am trying to make it so whatever the user types into the prompt box appears on screen, and once it is on screen, they can click it and it will link to the url they entered. Thanks.
I have this local variable in a function in the head so far (with an onLoad event linking to the function), but it doesn’t link:
var myUrl = prompt(“Please type in a full URL address”, “”);
document.write(“<a href=’myUrl’>myUrl</a>”);