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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Document Location

Status
Not open for further replies.

schafjoe

Programmer
Dec 16, 2002
20
US
Everybody,
When I run the following page, I get " in the alert modal dialog box. What I want to get is " What am I doing wrong.


<!-- temp.htm -->
<HTML>
<HEAD>
<SCRIPT language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;>
<!--
function sendmyform()
{
alert (document.location);
}
-->
</SCRIPT>
</HEAD>
<BODY>
<a href=&quot;Test.asp?&Model=1&quot; onclick=&quot;javascript:sendmyform();return false&quot;>Click here to test</a>
</BODY>
</HTML>
 
<!-- temp.htm -->
<HTML>
<HEAD>
<SCRIPT language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;>
<!--
function sendmyform(x)
{
alert (x);
}
-->
</SCRIPT>
</HEAD>
<BODY>
<a href=&quot;Test.asp?&Model=1&quot; onclick=&quot;javascript:sendmyform(this.href);return false&quot;>Click here to test</a>
</BODY>
</HTML>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top