/    Sign up×
Community /Pin to ProfileBookmark

How to find a URL ?

When i have such a line in an HTML code :
“<a href=’javascript:document.formi.submit();’ class=’wp-bn-button w2b’>”

How can i know where will to what URL will it go ?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@PittimannJun 20.2004 — Hi!

You can find it in the <form> tag. It is the bit with action="..."

Cheers - Pit
Copy linkTweet thisAlerts:
@thenetfreakerauthorJun 20.2004 — in the HTML the is <form name='formi' action='NumBalance.asp'.......

now, i tried to enter to NumBalance.asp and it gives me the same page.

wtf?????
Copy linkTweet thisAlerts:
@PittimannJun 20.2004 — Hi!

It is not really good to use a href='javascript:document.formi.submit();'

I thought, you just want to know in general, where a form goes. Now I see, you want to use it yourself. But to help you, we will need your code.

If your form has an action and you point it to another page, it will go there when you submit it, irrespective of the method you use for the submit. Just post your code and explain what exactly you want.

Cheers - Pit
×

Success!

Help @thenetfreaker spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...