Follow us on Twitter!
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill
Thursday, April 24, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 23
Guests Online: 21
Members Online: 2

Registered Members: 82905
Newest Member: BLckLIght
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

Just a quick JS question

Mouzi
Member



Posts: 144
Location: Finland
Joined: 08.08.06
Rank:
Newbie
Posted on 01-01-08 14:50
Let's say I have a JavaScript variable called someInput that refers to an input object, and that the input object is inside a form that has "page.php" as action attribute.

Now, is there a way to get the action attribute of the form that the input object is in? I could use someInput.parentNode.action, but it is not guaranteed that the parentNode is the form :S


EDIT:
Found the answer with google (didn't find anything when I first tried).
Apparently you can use someInput.form.action


izuom.net/sig.gif
Steganographs

Edited by Mouzi on 01-01-08 15:10
You would try to hack it anyways.
Author

RE: Just a quick JS question


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 01-01-08 19:24
i like ur sig ftw!