Jump to content

Recommended Posts

Posted

Hey guys! I recently got sublime text 2 installed and I was looking up youtube videos on how to run the files, etc. But, when i run the HTML file in the browser in doesn't run the javascript. I put <script> type="text/javascript"></script> but it still doesn't work. The javascript file has some alerts and prompt on it but I dont think that matters.

Posted

Debuggin javascript like that seems tedious XD

 

I am no expert on javascript but I think if you are learning JS this is a good way to test your stuff:

 

https://jsfiddle.net/

  • Like 1
Posted

Debuggin javascript like that seems tedious XD

 

I am no expert on javascript but I think if you are learning JS this is a good way to test your stuff:

 

https://jsfiddle.net/

I tested everything on js fiddle just now, and it seems to work perfectly. Maybe there's something wrong with sublime?

Posted

Yeah no idea how sublime works for that sort of thing :D.

  • Like 1
Posted

Idk any place I have used JS (Which isn't often for me) I have either tested it live on my site(I guess I would edit it with notepad++ though) or on jsfiddle :P

Posted

you should post the source code, so its easier to see where the problem is.

Alright, well right now I'm on my school laptop which doesn't have a hard drive at all besides the storage in google docs XD But I will post it after I'm done with school

Posted

<script> type="text/javascript"></script>

 

Is the extra > in your html code also?

  • Like 1
Posted

<script> type="text/javascript"></script>

 

Is the extra > in your html code also?

Idk, I deleted the editor. XD i will download it again. But ya, I think so

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.