Forum Moderators: open
<img src="picturefile" on click="window.location('path to page'">
What is this type of code called anyway?
Here's what I'm trying to do. I'm trying to replace the links (all except the one to my site map) on my index page to links that the search engine won't be able to read. This is to get a better ratio of incoming/outgoing links on my index page.
The only clue I have to go by is the code I listed above (I think they're trying to get me to buy the book on this strategy). So, I need to understand the whole thing. What exactly is inside the head and exactly, if this code can be used for text instead of images, and which part of the code to I replace with specific info.
Thanks!
<script language="javascript">
function register() {
window.location.href = "register.asp";
}
</script>
<input type="button" value="Register" onclick="register();">
I tried it and it actually works. I modified it a bit and used it with an image instead of a button, but, now I have two questions. Can this script be used with text? And is there any way for the cursor to appear as a hand when you hover over the text? Now I'm afraid people won't realize that this area will link to something (or should I say, open a new page) without the "hand."