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

Netscape 7.1 alert()

Status
Not open for further replies.

sezme

Programmer
Oct 31, 2003
26
0
0
GB
Why wont my alert() work in netscape 7.1

<html><head><title></title>
<script language=&quot;javascript&quot;>
<!--
alert()
//-->
</script>
<body onLoad=&quot;javascript:alert()&quot;>
<a href=&quot;#&quot; onClick=&quot;alert();return false;&quot;>test</a>
</body>
</html>

Newbie to netscape - why doesn't this work anyone ?
 

Probably because you haven't passed an argument to alert().
 
<html><head><title></title>
<script language=&quot;javascript&quot;>
<!--
function x(){
alert(&quot;Show some text&quot;);
return false;
}

//-->
</script>
<body onLoad=&quot;javascript:alert()&quot;>
<a href=&quot;#&quot; onClick=&quot;x();&quot;>test</a>
</body>
</html>

Also, make sure your browser isn't blocking pop-ups.

There's always a better way. The fun is trying to find it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top