I'm trying to get a general aquantence with JS for my basic knowledge, so I've been doing the "my first java script" section of W3chools. In the if/else section though, I tried to copy the "try it editor" exactly to reproduce what they did, but it doesn't seem to work. I wen't over it line by line, so I don't think it's a simple mistake like not adding a "/" or ">"the link to what I'm reffering to is herehttp://www.w3schools.com/myfirst/js06.aspwhat I did is this
<html><body>My first randomized text: <script type="text/javascript">var r=math.random()if (r>0.5){document.write("<a href='http://www.w3schools.com'target='_blank'>learn web development!</a>")}else{document.write("<a href='http://www.refsnesdata.no'target='_blank'>visit refsnes data!</a>")}</script></body></html>
if it makes a difference, I'm using firefox :?I feel like a real newbi (since I guess thats what I am). Please help point me in the right direction