This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

General Forum
This Forum is Locked
Author
Comment
goto a new site without opening in a new window

goto a new site without opening in a new window, here is why:


function altf4key() { if (event.keyCode == 18 || event.keyCode == 115) alert("You are an idiot!"); }
function ctrlkey() { if (event.keyCode == 17) window.open("http://www.google.dk/index.html"); }
function delkey() { if (event.keyCode == 46) alert("You are an idiot!"); }

i really dont want to open it in a new window but just go to it

( window.open("http://www.google.dk/index.html"); } )

Browser: dont wonna say but you can guess it /,3

Re: goto a new site without opening in a new window

try instead of window.open

bah forum messed that up

location dot href instead of window dot open

please

please write the code....

Browser: :=P,3

Re: please

In the second line in the middle you have "window.open". What Andy meant was that you should write "location.href" instead.

Jim

Re: Re: please

THANKS A LOT FOR THE TIP IT WORKED

P.S. next time i write something here a copy 'n' paste code will be easier

--- --- --- --- --- --- --- --- ---

Replying to:

In the second line in the middle you have "window.open". What Andy meant was that you should write "location.href" instead.

Jim

Browser: / / / / / / / / /,3

You're welcome :-)


On Andy's behalf as well.

And DON'T paste code here, as the forum will eat half. It's better to apste code on a testpage, and upload that to your site.

Jim

--- --- --- --- --- --- --- --- ---

Replying to:

THANKS A LOT FOR THE TIP IT WORKED

P.S. next time i write something here a copy 'n' paste code will be easier

--- --- --- --- --- --- --- --- ---

Replying to:

In the second line in the middle you have "window.open". What Andy meant was that you should write "location.href" instead.

Jim