Hartmut: Kann man per Button auf eine URL gelangen?

Beitrag lesen

so geht es am besten steht auch in selfhtml aberich weiss nicht mehr genau wo?
is aber aber auch java und css kannste aber als grundgerüst immer weiter verwenden
gruß
hartmut

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Links</title>
<!-- (Im untren Bereich kannste die Form und die Farbe vom Button bestimmen) -->
<style type="text/css">
<!--
 input
  { background-color:#ffcc00; color:#000080; font-weight:bold; font-size:10px;
    font-family:Verdana,Helvetica,sans-serif; border:#1px outset 000088;
    width:100px; height:19px; margin-bottom:6px; }
 button
  { background-color:#FFFFDD; border:2px outset yellow; width:115px;
    text-align:center; margin-bottom:6px; }
-->
</style>

<!-- (Ab hier kannste die lage und größe vom Fenster bestimmen) -->
<!-- Hartmut (c)kurfuerst.de.tf /10.03.2003) -->
<SCRIPT LANGUAGE="JavaScript">
<!--
function hm()
{
var iMyWidth;
var iMyHeight;
// gets top and left positions based on user's resolution so hint window is centered.
iMyWidth = (window.screen.width/2) - (0 + 505)//half the screen width minus half the new window width (plus 0 pixel borders).
iMyHeight = (window.screen.height/2) - (27 + 350)//half the screen height minus half the new window height (plus title and status bars).

<!-- (Ab hier kannste die URL bestimmen es geht übriegens auch einfach nur windows.close))      ) -->

var win2 = window.open("http://www.kurfuerst.net","Fenster2","status,height=650,width=1000,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no")
}
// -->
</SCRIPT>

</head>
<body bgcolor="#ffff9c"><div align="center">

<!-- (Ab hier geht das mit dem Button los) -->

<form action="klickbutton_style.htm">
<b><font size="2" color="#00008c">Die machen solche Seiten<br>
<A HREF="#" onClick="hm()"><input type="button" value="Kurfuerstnet"><br>

</button>
</p>
</form>

</body>
</html>