Login_Here
07-03-2003, 06:22 AM
Im quite new to javascript so i need some help.
If i want to make a button that is linked to a website
and open it in a new window how do i do
For example i write
<head>
<SCRIPT LANGUAGE="JavaScript">
<-- Begin
function goToURL() { window.location = "http://www.google.com; }
// End -->
</script>
</head>
<body>
<form>
<input type=button value="Google" onClick="goToURL()">
</form>
</body>
What should i write to make the website open in a new window?
And what do i write if i want many buttons linked to different websites?
If i want to make a button that is linked to a website
and open it in a new window how do i do
For example i write
<head>
<SCRIPT LANGUAGE="JavaScript">
<-- Begin
function goToURL() { window.location = "http://www.google.com; }
// End -->
</script>
</head>
<body>
<form>
<input type=button value="Google" onClick="goToURL()">
</form>
</body>
What should i write to make the website open in a new window?
And what do i write if i want many buttons linked to different websites?