Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Form submit opens two pages but not in chrome or safari

Can anyone help?

7:36 pm on Apr 18, 2013 (gmt 0)

New User

5+ Year Member

joined:Oct 31, 2010
posts: 11
votes: 0

ok, I have some javascript code that enables one html form to open two pages on submit, one in the same window and the other in a new window. This works fine in IE and FF although not in Chrome or Opera.

Can anyone shed any light on this? Here is the code:

echo '<script language="Javascript" type="text/javascript">
function OnButton5()



return true;

function OnButton6()



return true;

The actual code as part of the html form which calls these javascript functions is this:

onclick="OnButton5(); OnButton6();"

Can anyone give any advice on how to make this cross browser compatible in order to work in chrome and safari as well as IE and FF.

2:41 am on Apr 29, 2013 (gmt 0)

New User

joined:Mar 20, 2013
posts: 5
votes: 0

That is an interesting issue, I saw the same thing happening to me.
I tested this and it should work for you in multiple browsers.

change your onclick to:

and add this to OnButton5() function...
12:04 pm on May 2, 2013 (gmt 0)

New User

joined:Apr 13, 2013
votes: 0


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members