#1
I still cant find any answers on the web as to why this doesnt work so I thought Id ask here... Bad idea I know.

Can someone please look at this code and tell me what the hell is wrong with it. In theory it should work but in practice it only loads the bottom link for all of the links... Its annoying!


<html>
<head>
<script type="text/JavaScript">
<!--
function load() {var load=window.open('http://www.rmutphysics.com','','scrollbars=yes,menubar=yes,height=600,width=800,resizable=yes,toolbar=yes,location=yes,status=yes')};

function load() {var load=window.open('http://www.geo.arizona.edu','','scrollbars=yes,menubar=yes,height=600,width=800,resizable=yes,toolbar=yes,location=yes,status=yes')};

function load() {var load=window.open('http://www.chem.tamu.edu','','scrollbars=yes,menubar=yes,height=600,width=800,resizable=yes,toolbar=yes,location=yes,status=yes')}
// -->
</script>

</head>
<body>
<a href="javascript:load()">http://www.rmutphysics.com</a><br>
<a href="javascript:load()">http://www.geo.arizona.edu</a><br>
<a href="javascript:load()">http://www.chem.tamu.edu</a><br>
</body>
</html>

[Its all the bits from the webpage that I am desiging that do not work like it should.]

Edit:

If I put anything in the () the codes fail and do not open the new windows like its supposed to.
Sat in a lab, curing diseases. They actually LET me play with chemicals!
#2
I looked at it and found nothing wrong apart from the beginning, middle and end.
But then again, I don't have a clue about writing html anymore.
#3
Sorry man, don't know any Java. My knowledge is limited to CSS and HTML.
#4


This is getting to be a pain in the ass.

Every single little thing I try and the code breaks!
Sat in a lab, curing diseases. They actually LET me play with chemicals!
#5
Why do you even bother with Java? That shouldn't be very hard to do with normal HTML code even?
#7
Quote by 14shadesofblue
dont need java for that, use regular html mayne


Nah I have to use Javascript as part of the assignment. Ive figured it out. I made a stupid error.
Sat in a lab, curing diseases. They actually LET me play with chemicals!
#8
Help is on the way, Dizzy. I've got Connor coming to help you
¤´¨留話 請留話 請在我說完後
¸.•´¸.•´¨¸.•¤¨哭泣我不在這裡 我不在那裡請在嗶一聲之後留
(¸.•´ (¸.•´ .•´(´¸.•¤´`¤下自己的秘密請在嗶一聲之後對話筒沾自喜請在嗶一聲之後對空氣唉聲嘆氣


我不在這裡 我人在哪裡 我想到哪裡¤

請在嗶一聲之後留下有聲的話題¤

請在嗶一聲之後分擔感情的問題¤


¤¤¤

#9
It is because your not Asian.
SCALD
Quote by Phill-Rock
That, or being absolutely broke - though you always find money for cigarettes, then end up even more broke.

so true ^.
_______________
Quote by k1ng_pooh
what in the name of satanus is a bass?

Quote by smb
I think it's a type of fish.


PM me for GP5
#10
Quote by Harmonius
Help is on the way, Dizzy. I've got Connor coming to help you


Thanks

I changed it so that its:

<html>
<head>
<script type="text/JavaScript">
<!--
function load1() {var load=window.open('http://www.rmutphysics.com','','scrollbars=yes,menubar=ye s,height=600,width=800,resizable=yes,toolbar=yes,l ocation=yes,status=yes')};

function load2() {var load=window.open('http://www.geo.arizona.edu','','scrollbars=yes,menubar=ye s,height=600,width=800,resizable=yes,toolbar=yes,l ocation=yes,status=yes')};

function load3() {var load=window.open('http://www.chem.tamu.edu','','scrollbars=yes,menubar=yes, height=600,width=800,resizable=yes,toolbar=yes,loc ation=yes,status=yes')}
// -->
</script>

</head>
<body>
<a href="javascript:load1()">http://www.rmutphysics.com</a><br>
<a href="javascript:load2()">http://www.geo.arizona.edu</a><br>
<a href="javascript:load3()">http://www.chem.tamu.edu</a><br>
</body>
</html>

And that seems to have done the trick
Sat in a lab, curing diseases. They actually LET me play with chemicals!
#11
Quote by Renka
Sorry man, don't know any Java. My knowledge is limited to CSS and HTML.


Exactly what I was supposed to post. Damnit, I thought I would come in here and drop some knowledge on the TS!
#12
*In the Butthead voice* "haha <head> haha..."
Out here you've gotta know where your towel is!
#14
Quote by Mistress_Ibanez
That's confusing


Who let you out of the kitchen!?
Sat in a lab, curing diseases. They actually LET me play with chemicals!
#15
Quote by Guitardude19
Who let you out of the kitchen!?

Quote by Burtonjp
Im secretly a lesbian female in a male body. The worlds a tough place for me.


Quote by gunther_sucks
I once ran into a mirror that I didn't know was there. I think you could say We were both suprised.
#17
Quote by Mistress_Ibanez
Har.

Shut up






Oh man I so couldnt resist that. I hope all is well with you.
Sat in a lab, curing diseases. They actually LET me play with chemicals!
#18
Quote by Guitardude19




Oh man I so couldnt resist that. I hope all is well with you.



You are permitted to laugh but greasysnowball is not


Thanks, hope your java thingy works now...?
#19
Quote by Renka
Sorry man, don't know any Java. My knowledge is limited to CSS and HTML.


Sorry man I don't know anything about computers. My knowledge is limited to WoW and guitar.
#20
Quote by Mistress_Ibanez
You are permitted to laugh but greasysnowball is not


Thanks, hope your java thingy works now...?


I acutally lol'd for ages. Yea my javascript works now... Thank god. Just one more webpage to build and check and Im done
Sat in a lab, curing diseases. They actually LET me play with chemicals!
#21
Quote by Mistress_Ibanez
You are permitted to laugh but greasysnowball is not


Thanks, hope your java thingy works now...?


awwww man! why not! that was timed so perfectly! how can you not laugh?!
Quote by Burtonjp
Im secretly a lesbian female in a male body. The worlds a tough place for me.


Quote by gunther_sucks
I once ran into a mirror that I didn't know was there. I think you could say We were both suprised.
#22
Quote by greasysnowball
awwww man! why not! that was timed so perfectly! how can you not laugh?!


Im still laughing.

Why?

Because Im that bored!
Sat in a lab, curing diseases. They actually LET me play with chemicals!
#23
1. This is not java (as you know but others don't) - this is javascript which is entirely different. Sorry but I'm a bit of a fascist when it comes to these things.

2. Seems you figured it out before I got here - you can't define the functions with the same name.
#24
Quote by Guitardude19
Im still laughing.

Why?

Because Im that bored!


right there with ya pal! im on the edge~!~!~! i might even take another nap!
Quote by Burtonjp
Im secretly a lesbian female in a male body. The worlds a tough place for me.


Quote by gunther_sucks
I once ran into a mirror that I didn't know was there. I think you could say We were both suprised.
#25
Quote by Guitardude19
Who let you out of the kitchen!?



Quote by 100Roy001
I used to have sex with dolls.
When I was really young, though.


Like, 26 or something.

#26
Quote by SaXXoN
1. This is not java (as you know but others don't) - this is javascript which is entirely different. Sorry but I'm a bit of a fascist when it comes to these things.

2. Seems you figured it out before I got here - you can't define the functions with the same name.


If I said Java and not JavaScript its me being incredibly lazy Sorry
Sat in a lab, curing diseases. They actually LET me play with chemicals!
#27
I'm in a computer electronics class right now.
Too bad I aren't learned properly for this kinda problem.