View Full Version : loading a .html document

10-01-2003, 09:24 AM
I was wondering how to load a new html file in the same window using onClick, as if I were clicking a link....

onClick="window.document.open('mypage.html')" in the TD tag didn't get me very far... nothing happens

So let's say I do this...

<TD onMouseOver="this.style.background='#0000cc'" onMouseOut="this.style.background='#000080'"><A HREF="mypage.html">my link</a>

but I don't want the <A> tag... I want to make the whole<TD> linkable using onClick... any help is appreciated, thanks!


10-01-2003, 09:38 AM

10-01-2003, 10:43 AM
First of all, thanks... that was easier then I thought

Ok, I did that.. and it worked great when I incorporated on my main page, but when I did on some other pages (I pasted the code) it will tell me permission denied on some of the links.... but only on the other pages I pasted it to. Does this make sense? Im using it in the same manner (basically as a menu) on all the pages. If more information is needed, let me know. But if someone knows reasons why location.href="myfile.html" would yeild a permission denied alert, please let me know. Thanks!


10-01-2003, 11:09 AM
Originally posted by Yardgnome
Does this make sense?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum