/    Sign up×
Community /Pin to ProfileBookmark

Urgent!!! HTML Problem

HI guys,

I am kind of a newbie at web developing and i was wondering if anyone could help me with my problem.

I am trying to build a page where the person could type in a 9 digit number press the “submit button” and it will bring him to another specific page only for the number.

Thanks.

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMayMar 29.2009 — [code=html]
<input type="text" id="pgId" />
<button onclick="document.location=document.getElementById('pgId').value+'htm'">Go</button>[/code]
Copy linkTweet thisAlerts:
@paulvanfootballauthorApr 02.2009 — Thanks,

But i was wondering how to make the page come up in a new window.

Thanks
Copy linkTweet thisAlerts:
@TheBearMayApr 03.2009 — <input type="text" id="pgId" />

<button onclick="window.open('"+document.getElementById('pgId').value+"'htm')">Go</button>
Copy linkTweet thisAlerts:
@paulvanfootballauthorApr 03.2009 — Sorry its not working in my HTML Editor is there anything I need to add. It comes up in the Editor screen but when I click "Preview in Firefox" is show the text entry area and the "Go" button but when i type in a number a click "Go" nothing happens.

Thanks
Copy linkTweet thisAlerts:
@TheBearMayApr 04.2009 — Ooops, my bad, I overthought it:

<i>
</i>&lt;input type="text" id="pgId" /&gt;
&lt;button onclick="window.open(document.getElementById('pgId').value+'.htm')"&gt;Go&lt;/button&gt;
Copy linkTweet thisAlerts:
@paulvanfootballauthorApr 04.2009 — Thank you so much.
×

Success!

Help @paulvanfootball 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...