|
Posted by Rik on 10/18/06 03:25
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 ....>
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 :-)
If not, could you provide a link of the form in action perhaps? (or the
exact file)
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|