Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JavaScript

  Asked By: Kaua    Date: Jun 09    Category: Java    Views: 546
  

I have one very basic question about javascript. I have three
function.

(1) function yahoo()
{
window.open("www.yahoo.com");
}
(2) function sun()
{
window.open("www.sun.com");
}
(3) function foo()
{
yahoo();
sun();
}

now what happen, when I call function foo() its open sun webpage and
does not open yahoo.. anyidea why is it behaving like that... thanks
you very much for your help...

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Heru Chalthoum     Answered On: Jun 09

What exactly is the relationship bewtwwn Java and JavaScript? Is both
nabe by Sun?

 
Answer #2    Answered By: Murad Bashara     Answered On: Jun 09

Pretty much none. Other than that both
have a syntax similar to C/C++. JavaScript
is a browser scripting language, Java is
much much more, almost too much to mention
briefly. JavaScript I think was orginally
a Netscape creation, but I'm not sure about
that. It would be interesting to find out
how the naming similarity came about, or
if it was all coincidence. In a browser,
JavaScript can talk to a Java applet, but
that's pretty much all the connection they
have.

 
Answer #3    Answered By: Juan Reynolds     Answered On: Jun 09

java is a fully object oriented programming language developed by sun

javaScript is object based scripting languade by netscape

 
Answer #4    Answered By: Rafael Thompson     Answered On: Jun 09

I am trying to find out, when I go from One Web page to another,
like going to www.yahoo.com to www.hotmail.com how many bytes gets
loaded in my browser cache. Does anyone know what am I talking
about.

 
Didn't find what you were looking for? Find more on JavaScript Or get search suggestion and latest updates.




Tagged: