You are here: irt.org | FAQ | JavaScript | Pointer | Q1784 [ previous next ]
Instead of creating the link with an html anchor, use onClick="window.open(...)" within a <span>, <div>, <p>, etc. tag (for text). Unless you also specify a particular cursor style, the pointer will behave as if it's ordinary text.
<span onClick=self.location.href="nextpage.html"> Click here to load into the same window </span> <div onClick=window.open('nextpage.html','title','')> Click here to open a new window </div>
It works with images, too...
<img src="linkpic.jpg" onClick=self.location.href="nextpage.html">
This makes the pointer an hourglass...
<span onClick=self.location.href="nextpage.html" style="cursor:wait"> Click here to load into the same window </span>
Submitted by Mister Wags