...Okay, I understand that this is totally unrelated to any of the missions. Of course, I'm sure they require injections and such, but I haven't done any of them yet, so just to clear this up, THIS IS NOT ABOUT THE JAVASCRIPT MISSIONS.

What I'm trying to do is have fun with Google and javascript injections. Changing what the "Google Search" and "I'm Feeling Lucky" buttons say, to be exact.

I've figured out that the "Google Search" button is form 0. This lead me to the assumption that the other one is form 1. Either it's not form 1, or I didn't find the right name for it in the source code. From what I've found, the name SHOULD be btnI. Right? If that's correct, then what is the correct form?

guitarist10 wrote:...Okay, I understand that this is totally unrelated to any of the missions. Of course, I'm sure they require injections and such, but I haven't done any of them yet, so just to clear this up, THIS IS NOT ABOUT THE JAVASCRIPT MISSIONS.

What I'm trying to do is have fun with Google and javascript injections. Changing what the "Google Search" and "I'm Feeling Lucky" buttons say, to be exact.

I've figured out that the "Google Search" button is form 0. This lead me to the assumption that the other one is form 1. Either it's not form 1, or I didn't find the right name for it in the source code. From what I've found, the name SHOULD be btnI. Right? If that's correct, then what is the correct form?

...and without changing the number in the brackets, just changing the name, I got it. Is there anyone who can explain this to me? I feel like it should be a different number, but it's not. It's confusing me. :p

There's only one pair of <form></form> tags with a couple inputs within the form tags. So when you referenced the first button it's still within the same form tag as the second button. Hence a different name for the the two inputs. Basically, <form></form> tags can have multiple inputs. Just because there are two buttons doesn't mean it has two forms.

Just out of curiosity, what made you think there were two forms if you didn't check for the tags before you tested for the second button?

guitarist10 wrote:I'm literally JUST learning this sort of thing, so I'm a little stupid with HTML code 'n such. That's why. Thanks for explaining it to me, though!

Ah, don't be like that man. I honestly just thought you knew something I was missing. A good portion of the code is obfuscated or at least it is to me. Stick around, and at least now you have a good starting point.