DEVPPL
http://www.devppl.com/forum/

Need To Modifiy Java Code On a onclick Button Command
http://www.devppl.com/forum/viewtopic.php?f=47&t=11992
Page 1 of 1

Author:  ADubin [ Sat Oct 04, 2008 8:52 pm ]
Post subject:  Need To Modifiy Java Code On a onclick Button Command

I need to modify the below code so instead going to the previous page I want to to the home page of the website (http://www.dubinphotos.com)
====================================
<BR><BR>
<CENTER><FORM><input type=button value="Back to File Upload" onclick="history.back();"></form></CENTER>
<BR><BR>
=====================================

I would really appreciate some help on this change.

Thanks,
ADubin

Author:  rangana [ Tue Oct 07, 2008 3:16 am ]
Post subject: 

First of all, you should know by now, that JAVA is far different from Javascript.

Your problem is Javascript and not otherwise. I guess webmaster or some moderators will move this in the right place for you.

Secondly, you should be aware that center is a deprecated tag.

For your problem, replace highlighted:
<input type=button value="Back to File Upload" onclick="history.back();">

...with:
Code:
location.href='http://www.dubinphotos.com'


Hope that helps.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/