| |
eak_guy
Posts: 15
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
|
I'm attempting to display a link to HTML page. Name of site will appear, address will be in code. Both items come from user input. The name appears on page and pretends to be a hot link, but when you click it - Nothing! Here's my code. I would much appreciate if you would point out my mistake? <SCRIPT LANGUAGE="VBScript"> <!-- OPTION EXPLICIT document.bgcolor="DBDB70" document.write "<BR><CENTER><FONT SIZE=7 FACE=arial COLOR=brown><B><STRONG>Problem 12</STRONG></B></FONT></CENTER><BR><BR><BR><BR>" Dim strURL strURL=InputBox("Please enter the URL (Web address) of your favorite Website.") Dim strName strName=InputBox("What is the name of the Website?") document.write "<BR><CENTER><FONT SIZE=5 FACE=arial COLOR=red><B><STRONG><A HREF=strURL>" & strName & "</A></STRONG></B></FONT></CENTER>" //--> </SCRIPT>
|
|