Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4125522
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:52:50+00:00 2026-05-20T23:52:50+00:00

My goal is to open a new window when the user clicks on the

  • 0

My goal is to open a new window when the user clicks on the link and then reload the main page to go back to the previous content. The first code snippet below works in IE and FireFox but doesn’t pop a new window in Safari. The second code snippet works in all 3 browsers but in Safari doesn’t perform the history.go(-1); to go back to the previous page on a main window.

Also, in a second snippet, if I put “return true;” after “history.go(-1);” history.go(-1); does work but the new window doesn’t pop up (target=””_blank””).

Any suggestions?

Thanks,
Ryan

<html> <body> <form id="sso" method="POST" action="/apps/Integration/SsoUtil/SiteTransfer/SsoSignonSaml2Url.aspx" target="_blank" >
    <input type="hidden" size=150 name="SsoEncryptedData" value="<%=cd.ToSsoEncryptedB64()%>" /> </form> </body>

  <script>
    sso.submit();
    history.back();   </script> </html>


------------------WORKS IN SAFARI BUT DOESN"T RELOAD THE PARENT PAGE-----------------------
<%
Response.Write("<html>")
            Response.Write("<body onload=""document.getElementById('sso').submit();return true; history.go(-1);"">")

            Response.Write("<form id=""sso"" method=""POST"" action=""/Apps/Integration/SsoUtil/SiteTransfer/SsoSignonSaml2Url.aspx"" target=""_blank"">")

            Response.Write("</form><br/>")
            Response.Write("</body>")
            Response.Write("</html>")
            Response.End()
%>
-------------------------------------------------------------------------------------------
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T23:52:50+00:00Added an answer on May 20, 2026 at 11:52 pm

    Try

    <script>
    sso.submit();
    setTimeout(function() { history.back();},1000)   
    </script>
    

    then try returning <script>opener.history.back()</script> from your server when you submit
    Lastly give your form a submit button and try clicking it instead of submitting the form
    document.getElementById('subbut').click()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use response.redirect to open page in new window or tab. I
My goal is to open a new terminal window, SSH into a remote machine
My goal here is to open temp.php, explode by ### (line terminator), then by
Hi here's the goal: to create an automatic bit of content that toggles open
I have a page with several links that open a separate window with varying
In one of my apps I want to open a new window/tab for a
My main goal is to check an FTP server at anytime for a new
I am using the SharpZipLib open source .net library from www.icsharpcode.net My goal is
Goal: Create Photomosaics programmatically using .NET and C#. Main reason I'd like to do
goal: I have the string 1234432144 I want to only replace the first 2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.