Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

rightclick menu


  • Please log in to reply

#1
Metallica

Metallica

    Spyware Veteran

  • GeekU Moderator
  • 33,101 posts
I added a line to my rightclick menu for IE, to get me to a local html file if I want to get away from where I am fast. :tazz:

The menu works but the window crashes as soon as the local window opens.

I think the mistake is in my (too) simple Javascript.

<script language="javascript"> 
window.open("Spywareinfoen.html");
</script>

The script is in the same folder as the html, so that part works.

Is window.open the wrong command?
  • 0

Advertisements


#2
Metallica

Metallica

    Spyware Veteran

  • Topic Starter
  • GeekU Moderator
  • 33,101 posts
I'm dumb. :tazz:

The window crashed because my popup-blocker killed it.

Obvioulsy I don't want to disable it.
Does anybody know the script to load a new site in the same window?

TIA,
  • 0

#3
mpfeif101

mpfeif101

    Member 1K

  • Retired Staff
  • 1,411 posts
Hi Pieter,

The window.open function is used to make a new window. You can use HTML to do a meta refresh to refresh the browser to a new page.

<head><meta http-equiv="refresh" content="0; url=URL"></head>
  • 0

#4
Metallica

Metallica

    Spyware Veteran

  • Topic Starter
  • GeekU Moderator
  • 33,101 posts
Hi Matt,

What I want is for the current window to go to my Startpage when I rightclick and choose that option.

Regards,
  • 0

#5
CrAzY_J

CrAzY_J

    Member

  • Member
  • PipPip
  • 45 posts
So you want to redirect yourself somewhere else with the right onlclick??!!
Well then dont use window.open because that will...well..open a new window =P

instead try this:
document.location="http://www.google.com";

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP