Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
you can use Brackets or Sublime Text or Dreamweaver(paid) or Notepad++ .
Try using the JS within script element like this.
<script>
var js = 2 ;
</script>
or you can make a .js file and link it into the header. -
yarwest27158y@EpIcInCoGnItO or at the bottom of the page so that everything is loaded before execution
-
It's generally a bad practise to include scripts in the header, it's best they get included in the bottom of the body
-
@RinseRepeat Cool. I new thing for me as I have had less problem with the linking on top.
-
yarwest27158y@EpIcInCoGnItO usually it is, yes, however there are some situations in which you would consider putting it at the top.
Stupid question but how exactly do you use javascript in an html page? What editor can you use to see a live preview as you code? Trying to make a multi-step secure form.
undefined