Solved

Javascript version 1.8

Posted on 2013-06-24
6
316 Views
Last Modified: 2013-07-05
Hello,
Is it possible to identify what version the javascript is being programmed by looking at the web page source code?  I would think that knowing of a certain construct used in version 1.8 and that construct being used on that web page, that one could determine what version was being used.
Is there an easier way?

Also,
How much information can be gather from a statement like this;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

I see that the DTD is xhtml, but is there more?
0
Comment
Question by:chima
6 Comments
 
LVL 6

Expert Comment

by:Manuel Marienne-Duchêne
ID: 39273890
may be you want to talk Jquery a librairy for javascript :

http://jquery.com/
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 125 total points
ID: 39273909
You can see the version of the jQuery library in the source code of a page.  But javascript itself is part of the browser and is not generally available separately and neither is the version of it.  Current versions of javascript in browsers are based on ECMAscript.  More info here: https://en.wikipedia.org/wiki/ECMAScript
0
 
LVL 51

Assisted Solution

by:Julian Hansen
Julian Hansen earned 75 total points
ID: 39273916
I am assuming you mean JQuery not Javascript

You can check the version like so
var ver = $().jquery;
alert (ver);

Open in new window

0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 35

Assisted Solution

by:Robert Schutt
Robert Schutt earned 150 total points
ID: 39274071
Assuming you do mean javascript, seems the way to do it is to include the version in the script tag so it's clear for people (and browsers), as shown here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/1.8

I'm not sure what is supposed to happen when a browser doesn't support the new version, probably ignore the entire script block.
0
 
LVL 9

Accepted Solution

by:
Sar1973 earned 150 total points
ID: 39274274
Are you looking for navigator properties? See http://www.w3schools.com/js/tryit.asp?filename=try_nav_all
0
 
LVL 51

Assisted Solution

by:Julian Hansen
Julian Hansen earned 75 total points
ID: 39274420
Having re-read your question
s it possible to identify what version the javascript is being programmed by looking at the web page source code?
Are you asking what version the author decided to use or what version is supported by the browser?
From the rest of your question it seems you are trying to work out something about the page and how it was developed.

Maybe tell us what it is you are trying to do - why you need this information - and we might be better able to help you.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now