Linkage

admin

Administrator
Staff member
How do you link two pages in a website together? I want to have links on my main page to other sub-pages.<!--content-->Well, you can create a button :<br />
<input type="button" value="Men's Single" onClick = "http://www.sasports.co.za/WJC02.html"><br />
or text<br />
<a href='http://www.sasports.co.za/badminton.html'>Badminton</a><br />
<br />
Hope it help.<!--content-->Except that your button method,<br />
<br />
<input type="button" value="Men's Single" onClick = "http://www.sasports.co.za/WJC02.html"><br />
<br />
will not work on a lot of browsers. Use instead:<br />
<br />
<form action="http://www.w3.org/"><br />
<p><br />
<input type="submit" value="The W3C"><br />
</p><br />
</form><!--content-->Please help me. If you say it won't work from other browsers... way? <br />
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. <br />
Why and where does <!-- w --><a class="postlink" href="http://www.W3.org">www.W3.org</a><!-- w --> fit ? ( the pages on my server are : WJCmsd.html / WJCmxd,html ect...<!--content--><input type="button" value="Men's Single" onClick = "http://www.sasports.co.za/WJC02.html"><br />
<br />
This won't work on any browser. Just a URI is not valid JavaScript and will throw an error.<br />
<br />
<button onclick="window.location='http://www.site.com/path/'">Label</button><br />
<br />
But then this still won't on every browser since many people disable JavaScript while other browsers simply don't support it.<br />
<br />
A standard link is the best way to go.<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.site.com/path/">text</a><br />
<br />
Why and where does <!-- w --><a class="postlink" href="http://www.W3.org">www.W3.org</a><!-- w --> fit ? ( the pages on my server are : WJCmsd.html / WJCmxd,html ect...<br />
<br />
They were not referring to any pages on your server. It was just an example.<!--content-->Great ! Thanks. It make sence.<br />
<br />
Once again...it you don't ask...you'lle never know.:cool:<!--content-->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<!--content-->
 
Back
Top