469,898 Members | 1,729 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

how to get notepad++ to render a Javascript script?

I am using notepad++ and when i run the file it simply pastes the file in the browser how can i get it to actually run the script?

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3.     <title>MyScript</title>
  4.     <Script Type="text/javascript">
  5.     alert("hello world");
  6.     // string: "hello world"
  7.     </script>
  8. </head>
  9. <body>
  10. </Body
  11. </html>
  12.  
Jan 31 '11 #1
2 5088
JKing
1,206 Expert 1GB
If you have saved your file as an html file you should be able to do a Run > Launch in Firefox.

Your closing body tag is malformed by the way.
Feb 1 '11 #2
thanks man i amm new as you can probably tell
Feb 1 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by aa | last post: by
1 post views Thread by Roger | last post: by
4 posts views Thread by Jesper | last post: by
3 posts views Thread by Ken Adams | last post: by
1 post views Thread by Steve Gelfmann | last post: by
9 posts views Thread by =?Utf-8?B?Vmlua2k=?= | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.