|
Posted by Shelly on 10/18/06 03:53
"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:88b95$45359e36$8259c69c$24588@news2.tudelft.nl...
> Shelly wrote:
>> I was a little too quick in replying. I have four buttons that
>> should not open a new window and two that should. In my actual
>> application I sent it to redir.php in the Javascript. Once there in
>> redir.php, I test on which of the two buttons in the original page
>> activated it and then send it to the proper page.
>>
>> The problem is that even though I only added the onclick to the two
>> buttons for a new page, ALL six buttons go to redir.php AND open a
>> new window. (I have the tests on the four other buttons in the
>> original page.)
>>
>> Can you think of any reason why the buttons that do not have the
>> onclick would execute the Javascript and go to redir.php? I placed
>> the script just inside <body> and before <form>.
>
> Ahum, please, pleas, do not use css inline like this. Give the buttons a
> class and put the layout in an external css-file....
>
>> <form ....>
Will do. right now, I just wanted to get ti to work.
>
> I'm very curious what your <form> tag actually sais, because I've switched
> them around, defaulting to _self instead of _blank.... That would be the
> easy solution :-)
It defaults to "_self"
<form action="" method="POST" name="pets" target="_self">
Shelly
[Back to original message]
|