Thread: Form buttons
View Single Post
Old 01-09-2007, 17:35   #9
ikthius
Inactive
 
ikthius's Avatar
 
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
Re: Form buttons

Quote:
Originally Posted by rgs00002 View Post
Thank you for that information. i shall get to work on it later on. I will let you know how it goes.

---------- Post added at 16:22 ---------- Previous post was at 14:51 ----------

O.K. well, I have tried doing as you suggested, unfortunately it does not work. The buttons appear alright, but when they are clicked nothing happens, with or without this in the header.

<!-- Original: Sven David Hildebrandt (shildebr@online.no) -->
<!-- Web Site: http://home.hia.no/~sdhild99 -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function goToURL() { window.location = "wytonretro print media 3.htm"; }
// End -->
</script>

So, the buttons are there and they change on mouseover, but in depending on the button the page will not close or go to the next page.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
  <title> new document </title>
 </head>

 <body>
 <input type="button" value="Go Here" onclick="window.location='http://www.woskf.co.uk'">
 <input type="button" value="Close This" onclick="javascript:window.close()">
//not sure if this will close the window, you may have to reference the window you want to close
//why do you want to close the window, why not redirect somewhere else?
  
 </body>
</html>
ikthius is offline   Reply With Quote