473,486 Members | 2,131 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Click Button to the next page

55 New Member
I'm new to HTML and currently building a website, I'm trying to click on a button to take me to page2.htm, However it's not working:

Please see my code below:


[HTML]<html>
<head>
</head>

<body>

<h3>Test Divina Dummy Site<h3>
<br>

<input type="button" name="next" id="next" value="Next" onClick="page2.htm">


</body>
</html>[/HTML]
Aug 31 '07 #1
5 2194
Screaming Eagle
4 New Member
Hello,
I'm sort of new to programming, myself, but right off I noticed that your input is not surrounded by form tags. It should look like this:
Expand|Select|Wrap|Line Numbers
  1. <form action="">
  2. <input type="button" value="userdefined" name="userdefined id="userdefined" onclick="userdefined/>
  3. </form>
Aug 31 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
This is a javascript problem so I'll send you to the javascript board.
Aug 31 '07 #3
gits
5,390 Recognized Expert Moderator Expert
hi ...

try something like this :)

Expand|Select|Wrap|Line Numbers
  1. function goto_page(src) {
  2.     window.location = src;
  3. }
  4.  
and in your html:

Expand|Select|Wrap|Line Numbers
  1. onClick="goto_page('page2.htm');"
  2.  
kind regards
Aug 31 '07 #4
divina11
55 New Member
Thank you for that, all resolved now.
Sep 7 '07 #5
gits
5,390 Recognized Expert Moderator Expert
hi ...

glad to hear you got it working :) ... post to the forum anytime you have more questions ...

kind regards
Sep 7 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
6905
by: John | last post by:
Could anyone please help me on this?? I have a php script page, which is basically quiz. Visitors (after login in with their email address) are supposed to answer each question, and when they...
0
747
by: sophocles the wise | last post by:
automatically post data & click buttons on sequence of web pages with AxWebBrowser Hi, I need to post stuff everyday to a website and am working on a VB program to do this for me. I am a...
16
3400
by: Barry Gilmore | last post by:
Is there a way to disable a button after it is clicked? I am trying to avoid having someone click on it twice while they wait for it to process. Thank you!
4
4055
by: Ian Davies | last post by:
Hello I am struggling for a solution to clear some fields on my webpage that takes their values from some sessions My solution below works when the button is clicked twice. I sort of know why I...
5
6741
by: Amoril | last post by:
I've read quite a few different message on various boards and for some reason I'm still having trouble wrapping my head around this viewstate maintenance and trying to get these dynamically created...
0
2016
by: netlady | last post by:
Hi, can someone help me or share his or her idea why I am always getting a blank web page whenever I click the export button or the navigational next toolbar of the crystalreportviewer in .net ? I...
0
1352
by: svgeorge | last post by:
I have web pages for making several 9 type of payments. The data gets loaded on web page from SQL server 2005 database. Then I have Process payment button(ProcPaymBTM_Click) on the web page(Detail...
1
1849
by: Hooyoo | last post by:
Hi, everyone. I want "steal" data from a web page :), but their data are stored in a data grid, and more than 1,000 pages in the data grid. Everytime I need click "Next Page" to view next page...
0
1010
by: revacdm20635 | last post by:
hi, I am working in VB.NET in .NET Framework 1.1. i am working with a web site. When i click a button in that site it shows one message box. That message box contains Ok and cancel buttons. I...
2
2796
by: chrisp | last post by:
I have an ASP.NET 2 page with a button that causes a credit card transaction to be authorised. The authorisation procedure may take a few seconds and so I want to prevent the user from clicking the...
0
7100
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7126
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5434
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4865
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.