Error: Access is denied

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Error: Access is denied

Post by JellyFish »

What does this error mean? The line of code that it specified is:

Code: Select all

window.webpage.history.back();
That's all it gives me. Damn IE :x

webpage is a frame. This line of code is in a frameset defining page. Maybe you can't use history object in other frames? That's all I get. The line of code is inside a function, here it is:

Code: Select all

function go_Back()
{
	window.webpage.history.back();
	return false;
}
The error appears when this button is pressed:

Code: Select all

<a onmouseup="window.top.go_Back();"> B </a>
It's obvious on what it is I'm trying to do. I'm not sure if I'm doing it right.

All help is appreciated. Thanks
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

suppose you gave us the full page context.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Why not try it in FF and see if any warnings/errors are generated. IE sucks at error reporting.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

d11wtq wrote:IE sucks at error reporting.
more than blackhole :lol:





Hiya Chris..
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

n00b Saibot wrote:Hiya Chris..
Hello :) Welcome back!
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

Well, first I need to know if I can use the history object in deferent frames? This function is in a frameset defining page.
Post Reply