I use a browser based system of checking procedures, written in html and javascript.
I’m doing a new one where I have a few <select> tag options.
I want to use these with onchange functions, to build up a variable that contains a url, and use that variable in a link lower down the page.
I can do the onchange functions I’m sure, already using something like that, but I’m failing to get the link to work.
Done some googling and seemed to be straight forward, but the hits I found don’t seem to work for me.
Just to get going I had this on the head:
Then in my <body>
I have:
All that happens is a blank tab opens, url is “about:blank”
I’m using firefox 13 on windows 7 64bit.
Where am I going wrong?
Steve (Delphi 2007 & XP)
I’m doing a new one where I have a few <select> tag options.
I want to use these with onchange functions, to build up a variable that contains a url, and use that variable in a link lower down the page.
I can do the onchange functions I’m sure, already using something like that, but I’m failing to get the link to work.
Done some googling and seemed to be straight forward, but the hits I found don’t seem to work for me.
Just to get going I had this on the head:
JavaScript:
<script>
<!--
function Page(){
location.href="[URL unfurl="true"]www.google.com";[/URL]
}
// -->
</script>
Then in my <body>
I have:
HTML:
<td width="20"><a href="javascript:page()" target="new2" style=""><img src="Checking_Images/info_icon_red.jpg" border="0"></a></td>
All that happens is a blank tab opens, url is “about:blank”
I’m using firefox 13 on windows 7 64bit.
Where am I going wrong?
Steve (Delphi 2007 & XP)