Very awkward question but is there a built-in js method for using an image as a link (i.e: onclick="space.htm") or will I need to have a javascript and call it?
if so, what would be a good one?
It may seem stupid but I cannot simply use <a href..>image</a> due to a script, so i need to make the link onclick
__________________
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)
Last edited by canadianjameson; 08-20-2007 at 07:21 PM..
i have to change my page to use server-side includes, so i'm no longer calling the dynamic ajax loader I was using to load my content into a central div... which means that my onclick calls to the ajax script are no longer opening the page and i need an equivalent way using onclick.
the long and short of it is that i need to create the link onclick and not using <a>. How can I do that?
__________________
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)
i literally found out that I had to use Includes like... an hour ago.
hehe, so yea, what is the js version of target="_self" (or is there one?)
could i simply use onclick="this.href('newPage.htm')" or something of the sort?
__________________
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)
Last edited by canadianjameson; 08-20-2007 at 08:40 PM..
yes, so I'm asking what the function is to open up a url in the current window via javascript instead of using the <a> tag. in html its <a href="blah.html" target="_self">link</a>
I figured that this would be an easy one
__________________
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)
__________________
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)