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

  • Home
  • SEARCH
  • 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 4609846
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:02:49+00:00 2026-05-22T01:02:49+00:00

I need a pop window which could not be refreshed by user. for that

  • 0

I need a pop window which could not be refreshed by user. for that i am trying this:

function openNewWindow(href){
        alert("hello here");
        var newWindow = window.open(href, 'newWindow', 
        'toolbar=no,location=no,directories=no,status=no, menubar=no,resizable=no,width=1024,height=400');
        return false;
    }

<a onclick="return openNewWindow(this.href);" href="newPage.html" >Click me</a>

newPage.html

window.onunload = check;
    function check(){
        alert("hey");
        return false;
    }

Here alert is generated when i try to reload the browser. but return false; is not working.

Or if it is possible to not to have Navigation bar in newly pop up window.

So please 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-22T01:02:50+00:00Added an answer on May 22, 2026 at 1:02 am

    newWindow.onload = setUnloadHandler;

    It’s not clear from your example, but probably newWindow contains a document from another site. You can’t script into it due to the Same Origin Policy.

    Also, browsers won’t let you do anything to prevent an unloading in the onunload handler, because it’s obnoxious and users hate it—remember the old days when this was allowed, and abused to generate endless uncloseable porn popup loops?

    You can’t get an unrefreshable window. What is your purpose in trying to do so?

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

Sidebar

Related Questions

i need a pop up window which asks me before proceeding to next like
I need to open a popup window, which when closed, opens a new pop
I need to make a pop-up window for users to log-in to my website
Need a function that takes a character as a parameter and returns true if
Need a function like: function isGoogleURL(url) { ... } that returns true iff URL
I need to open window pop-up from Silverlight Out-of-Browser application. I've added parameter <param
I've got a problem about onbeforeunload recently that I need to pop up a
I need a way to close the browser (not a pop up) using Javascript.
so basicaly my problem is that i need the submit button to pop-up a
i need to pop up alert when my application loaded... I called it didfinished

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.