why javascript is widely used scripting language in web applications? [duplicate]

I cant find plugins written in other languages other than javascript. There is browser support only for Javascript. Why didn’t they use other scripting languages other than Javascript when people started using scripts on their web pages? Why javascript was given priority?

4

it was the first client side scripting language introduced by netscape in the browser war in ’95 during the time it was dominant, submitted for standardization in ’96 (and standardized a year later).

Microsoft just couldn’t get a properly competing scripting language out fast/popular enough so they just adopted it as JScript.

Any other browser just didn’t have the market to introduce their own scripting language and were forced to adopt javascript to stay competitive.

Netscape made it to give their web browser an advantage, and then it stuck.

From this video by Douglas Crockford: Why the syntax is the way it is, why it’s called JavaScript, why Microsoft copied it, and why some of the bad parts are there. (I didn’t copy in the parts about ECMAScript, but that’s an interesting story as well):

One of the things [Netscape] wanted to do was to put interactivity
back into the browser, because we had lost interactivity when we went
to the browser model. […]

In order to do that, they hired this guy, Brendan Eich, who had been
at Silicon Graphics. Brilliant guy. In his interview he said he wanted
to write a Scheme interpreter, and they said ‘that’s great, that’s
just what we want’. After they hired him they found out what Scheme
was, and they said ‘no, no, no, you can’t do that. People won’t like
that. Do something that looks more like Visual BASIC, or Java,
something people like.’ […]

Brendan took elements of all three of these languages [Java, Scheme,
and Self], and a little bit of his own, and put them together into a
new language that was called LiveScript. […]

LiveScript was going to become one of the key technologies for
Netscape going forward. It was going to be in Netscape Navigator 2, so
you could have LiveScript applications running on the client-side, and
on the server-side; Netscape’s LiveWire server had server-side
JavaScript in it. This was back in ’95, so JavaScript was there from
the very beginning. It was very clear at the time that there was a lot
of excitement about Java and the Netscape browser, and Sun and
Netscape decided they needed to work together against Microsoft
because if they didn’t join forces Microsoft would play them off
against each other and they’d both lose.

The biggest point of contention in that arrangement was what to do
with LiveScript. Sun’s position was: “Well, we’ll put Java into the
Netscape browser, we’ll kill LiveScript, and that’ll be that.” And
Netscape said no, that they really believed in the HyperCard-like
functionality, and they wanted a simpler programming model in order to
capture a much larger group of programmers. So there was an impasse,
and the relationship almost broke up, when I think Marc Andreessen –
and I have been able to document this, but people have told me – Marc
Andreessen, maybe as a joke, suggested: ‘let’s change the name to
JavaScript.’

[laughter]

And it worked, except that Sun claimed ownership of the trademark.
Even though they had nothing to do with the language and they tried to
kill the language, they said ‘we own the trademark, but we’ll give you
a license to use the trademark’. Netscape said ‘great, an exclusive
license only, we can call it JavaScript, that’s fine’.

At Microsoft they’d been watching this with some alarm, particularly
when folks at Netscape were saying that Netscape Navigator was going
destroy Microsoft. Microsoft said ‘oh, we don’t want to be destroyed’.
It turned out Netscape Navigator didn’t destroy Microsoft. In fact,
the software that is going to destroy Microsoft is Windows Mobile.

[laughter]

But I’m getting ahead of the story again. What Microsoft did was they
decided they needed to copy the Netscape model in order to be
competitive. They reverse engineered the JavaScript engine and called
it JScript. They couldn’t call it JavaScript because Sun owned the
trademark, and they weren’t getting along very well with Sun at that
time, so they called it JScript. […]

Most languages take years to develop – for example, Smalltalk was
eight years from Alan Kay’s first prototype to Smalltalk 80, when it
was first made available to the public. That’s a good timeframe for a
programming language, because you want to go through it and test it,
make sure that it works, and refine it in order to make sure that it’s
meeting its goals. JavaScript was prepared in about as many days. It’s
amazing that he could get it done and designed and working in such an
incredibly short time; in about two weeks. I challenge any language
designer – it’s sort of like a quickfire challenge. That turns out not
to be a good way to make software, but that’s how it was done, and
we’re now living with the consequences of that. Had Netscape been a
better managed company, they might have taken a lot more time, maybe a
couple of extra weeks, to clean it up, and we wouldn’t be dealing with
the bad parts that we have now. But we have.

The good news is that, for the most part, the bad parts can be
avoided. And if you avoid the bad parts, and if you work just with
what’s left over, the good parts, there’s actually a brilliant
language there.

Crockford on JavaScript - Chapter 2: And Then There Was JavaScript

0

I think there were two major factors among many:

  1. Danish programmer Lars Bak changed the landscape of the internet when his team at Google engineered Chrome’s V8 runtime.
  2. Steve Jobs.

There were a bunch of other scripting languages; Oracle created wild applets so you could use Java.

I remember ActionScript being way ahead of JavaScript back when it first dropped, and I think later JavaScript basically copied ActionScript 2.

Remember when all you had to do was click here and wait while Flash was installed? Back then it was the only way cool things could happen, Flash’s ActionScript became the true mark of high quality browser development with cutting edge UI/UX.

JavaScript was terrible then, ECMAScript 3 was a major improvement, but Microsoft was way too big to care about anyone’s ideas on standards.

Suddenly the execution environment sped up dramatically with V8 and the browser wars had begun. As FireFox, Chrome, Safari, and many others fought it out, the execution time was under constant re-optimization.

One day, Steve Jobs woke up and decided to kill Flash.

So yea, probably Steve Jobs and Lars Bak were the two major reasons I would say.

2

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật