Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q657 Can I add history backward and forward ability to an image map?

irt.org | Knowledge Base | JavaScript | History | Q657 [ previous next ]

Q657 Can I add history backward and forward ability to an image map?

Try the following that was provided by David Swain:

<IMG SRC="menu.gif" USEMAP="#menu">

<MAP NAME="menu">
<SCRIPT LANGUAGE="JavaScript"><!--
document.writeln('<AREA SHAPE="rect" COORDS="0,35,99,72" HREF="javascript:history.back();">');
document.writeln('<AREA SHAPE="rect" COORDS="500,35,600,72" HREF="javascript:history.forward();">');
//--></SCRIPT>

<AREA SHAPE="rect" COORDS="100,35,199,72" HREF="http://www.somesite.com/">
<AREA SHAPE="rect" COORDS="200,35,299,72" HREF="http://www.anothersite.com/">
<AREA SHAPE="rect" COORDS="300,35,499,72" HREF="http://www.othersite.com/">
<AREA SHAPE="default" NOHREF>
</MAP>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.