Denzil_01224
11-21-2002, 01:36 PM
How do you link two pages in a website together? I want to have links on my main page to other sub-pages.
|
Click to See Complete Forum and Search --> : Linkage Denzil_01224 11-21-2002, 01:36 PM How do you link two pages in a website together? I want to have links on my main page to other sub-pages. henniev 11-21-2002, 02:05 PM Well, you can create a button : <input type="button" value="Men's Single" onClick = "http://www.sasports.co.za/WJC02.html"> or text <a href='http://www.sasports.co.za/badminton.html'>Badminton</a> Hope it help. Charles 11-21-2002, 02:41 PM Except that your button method, <input type="button" value="Men's Single" onClick = "http://www.sasports.co.za/WJC02.html"> will not work on a lot of browsers. Use instead: <form action="http://www.w3.org/"> <p> <input type="submit" value="The W3C"> </p> </form> henniev 11-21-2002, 02:55 PM Please help me. If you say it won't work from other browsers... way? Recently, the World Junior Badminton Championships were hosted in SA. The International Fedaration sent me the results in html format. I created a button and text to the results on that coding. Please if someone can check if it works...I'e appreciate. Why and where does www.W3.org fit ? ( the pages on my server are : WJCmsd.html / WJCmxd,html ect... jeffmott 11-21-2002, 03:48 PM <input type="button" value="Men's Single" onClick = "http://www.sasports.co.za/WJC02.html"> This won't work on any browser. Just a URI is not valid JavaScript and will throw an error. <button onclick="window.location='http://www.site.com/path/'">Label</button> But then this still won't on every browser since many people disable JavaScript while other browsers simply don't support it. A standard link is the best way to go. <a href="http://www.site.com/path/">text</a> Why and where does www.W3.org fit ? ( the pages on my server are : WJCmsd.html / WJCmxd,html ect... They were not referring to any pages on your server. It was just an example. henniev 11-21-2002, 04:13 PM Great ! Thanks. It make sence. Once again...it you don't ask...you'lle never know.:cool: Rick Bull 11-21-2002, 05:43 PM Yeah definately, I and probably a lot of people have learnt a lot about accessibilty from the guys at the HTML Goodies board. And JavaScript is something you have to be careful with if you want to cater for everyone :D webdeveloper.com
Copyright WebMediaBrands Inc., All Rights Reserved. |