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 6617305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:41:17+00:00 2026-05-25T20:41:17+00:00

I am having an issue with window.open that only occurs with Opera (version 11.5).

  • 0

I am having an issue with window.open that only occurs with Opera (version 11.5).

function openpageopera()
{
  var w = window.open("","_blank");
  try
  {
    w.document.write("<p>hello</p>world");
    w.document.close();
  }
  catch(err)
  {
    alert("error:" + err);
  }
}

Now, it works flawlessly when I execute this function after the page has loaded, ergo:

$(document).ready(function() {
  openpageopera();
});

And it also work if I’m opening a URL like google, yahoo, or even a webpage from my web server.

However, when I attach it to an onclick event, like on an HTML button, it fails.

<input type="button" value="Fails" onclick="openpageopera();">

What fails specifically? Well, the page does open but it’s blank. document.write is NOT working. The catch noted an error of:

error:ReferenceError: Security error: attempted to read protected variable: write

I don’t understand why executing this on the html button raises a security error. Why is this occurring and how can I resolve it?

Thank you very much for your help!

  • 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-25T20:41:18+00:00Added an answer on May 25, 2026 at 8:41 pm

    I ended clearing all private data in the Opera browser and it worked. However, every time I loaded the page, I made sure to press shift or ctrl refresh to clear the cache. Either it was a cache issue or something else entirely.

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

Sidebar

Related Questions

I'm having an issue creating a link like <a href=javascript:window.open('www.microsoft.com');>Visit Microsoft</a> using stringbuilder. I
Having an issue here that I have tried everything I can think of but
I am interested in having a bitmap icon that when clicked will open a
I am creating a modal window using jquery. I am having an issue with
I'm trying to open a dialog window, but every time I try to open
I'm having a funny issue with map_async that i can't figure out. I'm using
I'm having a bit of a strange issue that I can't quite figure out.
I've only just recent began learning C++ and am having a little issue with
I have this open-source library that I'm having some trouble fixing a problem... This
I am having some issues setting up Reporting Server. I can open http://localhost/reports only

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.